diff options
author | Rob Landley <rob@landley.net> | 2012-02-06 21:14:22 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2012-02-06 21:14:22 -0600 |
commit | 44a36ea927734f58b09eda59794eb1433a9f4401 (patch) | |
tree | fcb9129fcccac4827e3ed2ccdbab34ffa1533599 /scripts/test | |
parent | 87bfa7951d8e1fce34166008158f324feb7c57f7 (diff) | |
download | toybox-44a36ea927734f58b09eda59794eb1433a9f4401.tar.gz |
Bugfix for -x, add CONFIG_SORT_FLOAT, and new test suite entry.
Diffstat (limited to 'scripts/test')
-rwxr-xr-x | scripts/test/sort.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/test/sort.test b/scripts/test/sort.test index cb82dc07..6449e499 100755 --- a/scripts/test/sort.test +++ b/scripts/test/sort.test @@ -88,4 +88,13 @@ testing "sort key edge case with -t" "sort -n -k4 -t/" \ /usr/lib/prebaseconfig.d/6 " +testing "sort -x" "sort -x" "010\na0\n 0c0\n" "" "a0\n010\n 0c0\n" + +optional SORT_FLOAT + +# not numbers < NaN < -infinity < numbers < +infinity +testing "sort -g" "sort -g" \ + "bork\nNaN\n-inf\n0.4\n1.222\n01.37\n2.1\n+infinity\n" "" \ + "01.37\n1.222\n2.1\n0.4\nNaN\nbork\n-inf\n+infinity\n" + exit $FAILCOUNT |