Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
The test suite results for the text-sort steps appear to be using newlines as separators:
I think each line, including the last line, should end with a newline. Why is separator better?
After sorting "C D B A" (for example), the test suite results expect
That's using the newline as a separator. I think that each line should end with a newline:
This could come down to just being a matter of opinion, but I wonder if you have a specific reason for the choice of separator.
OK, now I see your point. We have different interpretation of
I understand "B
A" as two lines (and so the sorted result should have two lines too). "B
" accordingly has three lines (the last one is empty). And the sort result is
Did I get your point right? Do you think this is is a matter of opinion? I think we should fix this in the specs.