aboutsummaryrefslogtreecommitdiff
path: root/scripts/test
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/test')
-rwxr-xr-xscripts/test/sort.test9
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