coreutils/tests/fixtures
Michael Debertol 4bbbe3a3f2
sort: implement numeric string comparison (#2070)
* sort: implement numeric string comparison

This implements -n and -h using a string comparison algorithm instead
of parsing each number to a f64 and comparing those.

This should result in a moderate performance increase and eliminate loss
of precision.

* cache parsed f64 numbers

For general numeric comparisons we have to parse numbers as f64,
as this behavior is explicitly documented by GNU coreutils.
We can however cache the parsed value to speed up comparisons.

* fix leading zeroes for negative numbers

* use more appropriate name for exponent

* improvements to the parse function

* move checks into main loop and fix thousands separator condition

* remove unneeded checks

* rustfmt
2021-04-17 13:49:35 +02:00
..
cat cat: Unrevert splice patch (#2020) 2021-04-10 22:19:53 +02:00
cksum cksum: add tests and fixtures (#1923) 2021-04-05 22:21:21 +02:00
comm comm: additional tests and status/stderr checking for existing tests 2016-02-22 09:59:06 -05:00
cp cp: add support for -x/--one-file-system (#1840) 2021-03-19 21:15:35 +01:00
csplit csplit: refresh of the previous PR 2020-12-28 17:21:29 +01:00
cut tests/cut: positive testcases for feature complete 2016-08-06 17:11:54 -04:00
dircolors dircolors: tests added 2016-05-11 00:43:51 +08:00
du Consistency with GNU version of du when doing du -h on an empty file 2021-04-01 19:42:43 -04:00
env env: add support for new '--file' option (includes testing) 2019-04-29 09:50:22 -05:00
expand test(expand): Add some tests for expand (#1505) 2020-05-15 18:09:10 -05:00
fmt test(fmt): Add some tests for fmt 2020-05-06 00:38:22 +02:00
fold fold: move to clap, add tests (#2015) 2021-04-06 22:51:27 +02:00
hashsum hashsum: added blake2 as a hashing algorithm (#1651) 2020-12-08 23:32:02 +01:00
head Rewrote head (#1911) 2021-03-29 13:08:48 +02:00
install install: implement stripping symbol table (#2047) 2021-04-10 11:53:29 +02:00
join tests: untrimmed stdout assertion (fix #1235) 2019-02-08 07:54:48 +11: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
numfmt numfmt: implement --field 2021-03-08 10:53:34 -05:00
od od: implement --traditional 2016-09-02 21:24:29 +02:00
paste rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
ptx ptx: ignore empty regex (#1808) 2021-03-12 21:52:37 +01:00
shuf Add shuf tests (#1958) 2021-03-28 17:52:01 +02:00
sort sort: implement numeric string comparison (#2070) 2021-04-17 13:49:35 +02: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: suppress headers when --quiet flag is used 2017-10-05 21:25:21 +02:00
tsort rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
unexpand feat(unexpand): move from getopts to clap (#1883) 2021-03-23 09:42:05 +01:00
uniq uniq: implement group option 2021-04-04 15:22:17 +05:30
wc bug(wc): Add a test for unexpected behavior (#1723) 2021-02-16 13:36:49 +01: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