From 7ca907824d6f8a5017c3d914d0028a3d50ea619a Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 15 Jan 2016 12:38:32 -0600 Subject: Fix sort -f, add tests, make TEST_HOST pass new tests. --- tests/sort.test | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/sort.test') diff --git a/tests/sort.test b/tests/sort.test index 7bd413f7..2845e79c 100755 --- a/tests/sort.test +++ b/tests/sort.test @@ -90,6 +90,12 @@ testing "sort key edge case with -t" "sort -n -k4 -t/" \ testing "sort -x" "sort -x" "010\na0\n 0c0\n" "" "a0\n010\n 0c0\n" +# Test that -f applies to key or fallback independently + +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" + optional SORT_FLOAT # not numbers < NaN < -infinity < numbers < +infinity -- cgit v1.2.3