From 44a36ea927734f58b09eda59794eb1433a9f4401 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 6 Feb 2012 21:14:22 -0600 Subject: Bugfix for -x, add CONFIG_SORT_FLOAT, and new test suite entry. --- scripts/test/sort.test | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'scripts/test') 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 -- cgit v1.2.3