diff options
author | Rob Landley <rob@landley.net> | 2018-12-19 16:50:10 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-12-19 16:50:10 -0600 |
commit | 5ebd387640ed45bd320431ad30ec92103166ef74 (patch) | |
tree | 41cc271d225a3c48237cefe4bbdea97b8e2ef6c2 /tests | |
parent | b3b5ae1240cc45db80a2412e769ebace72281f00 (diff) | |
download | toybox-5ebd387640ed45bd320431ad30ec92103166ef74.tar.gz |
Fix sort -x attached to a key.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/sort.test | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/sort.test b/tests/sort.test index 619bbd02..2070d10c 100755 --- a/tests/sort.test +++ b/tests/sort.test @@ -92,9 +92,9 @@ testing "-x" "sort -x" "010\na0\n 0c0\n" "" "a0\n010\n 0c0\n" 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" +testing "-kx" "sort -k1,1x" "3\na\n0c\n" "" "0c\na\n3\n" optional SORT_FLOAT @@ -102,5 +102,3 @@ optional SORT_FLOAT testing "-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" - - |