aboutsummaryrefslogtreecommitdiff
path: root/tests/sort.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sort.test')
-rwxr-xr-xtests/sort.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/sort.test b/tests/sort.test
index 5fe925e1..dbb6ca08 100755
--- a/tests/sort.test
+++ b/tests/sort.test
@@ -104,6 +104,11 @@ toyonly testing "-kx" "sort -k1,1x" "3\na\n0c\n" "" "0c\na\n3\n"
# "toy-2.37.tar.gz\ntoy-3.4.tar.gz\ntoy-3.12.tar.gz\ntoy-4.16-rc2.tar.gz\ntoy-4.16.tar.gz\n" "" \
# "toy-3.12.tar.gz\ntoy-2.37.tar.gz\ntoy-3.4.tar.gz\ntoy-4.16-rc2.tar.gz\ntoy-4.16.tar.gz"
+testcmd "-c" "-c 2>&1 | grep -o [0-9]*" "3\n" "" "a\nb\na\nc"
+testcmd "-uc" "-uc 2>&1 | grep -o [0-9]*" "3\n" "" "a\nb\nb\nc"
+testcmd "-C 1" "-C || echo yes" "yes\n" "" "one\ntwo\nthree"
+testcmd "-C 2" "-C && echo yes" "yes\n" "" "a\nb\nc\n"
+
optional SORT_FLOAT
# not numbers < NaN < -infinity < numbers < +infinity