aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-12-25 21:22:23 -0600
committerRob Landley <rob@landley.net>2016-12-25 21:22:23 -0600
commit17ba06507207c9226c5449325e8984b94daf68cd (patch)
treeff46b8f6ef724e840e5b5374afc8b2fd5ddb76c2 /tests
parent7a7378629cc3d67b27c64452391b80aa8a5a6481 (diff)
downloadtoybox-17ba06507207c9226c5449325e8984b94daf68cd.tar.gz
Add test for last sort commit.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/sort.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/sort.test b/tests/sort.test
index cda3db51..930403e8 100755
--- a/tests/sort.test
+++ b/tests/sort.test
@@ -96,6 +96,9 @@ testing "" "sort -k2,2f" "A b b\na B C\na B a\n" "" "a B a\nA b b\na B C\n"
testing "" "sort -k2,2" "a B C\na B a\nA b b\n" "" "a B a\nA b b\na B C\n"
testing "" "sort -f -k2,2" "A b b\na B C\na B a\n" "" "a B a\nA b b\na B C\n"
+testing "" "sort -t, -k3n" "3,4,1,2\n4,1,2,3\n1,2,3,4\n2,3,4,1\n" "" \
+ "1,2,3,4\n2,3,4,1\n4,1,2,3\n3,4,1,2\n"
+
optional SORT_FLOAT
# not numbers < NaN < -infinity < numbers < +infinity