coreutils/tests/fixtures
David Laban 6751d2c708 implement sort --stable
Made a new function sort_by(lines, compare_fns), which accepts a
list of compare_fns and calls lines.sort_by() with a closure that
calls each compare_fn in turn until one returns something other
than equal.

Default behavior ensures that String::cmp is the last element in the
compare_fns list (referred to as 'last resort' sorting by man sort).
Passing --stable (-s) turns this behaviour off.

Test cases provided for `sort --month` and `sort --month --stable`.
2016-08-03 07:56:40 +01:00
..
cat rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
cksum rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
comm comm: additional tests and status/stderr checking for existing tests 2016-02-22 09:59:06 -05:00
cp cp: fixed failing tests due to git's weirdness with files 2016-07-15 15:29:47 -04:00
cut rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
dircolors dircolors: tests added 2016-05-11 00:43:51 +08:00
fold rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
hashsum rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
head rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
mv rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
nl rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
paste rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
ptx rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
sort implement sort --stable 2016-08-03 07:56:40 +01:00
sum rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
tac rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
tail tail: test -f with no files 2016-05-31 17:40:06 -03:00
tsort rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
uniq uniq: add tests 2016-02-29 11:07:16 +05:30
wc rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
.gitattributes .gitattributes: treat tests/fixtures/** as binary data to prevent CRLF convertion by git under Windows 2016-02-14 17:09:47 +01:00