• Home
  • Raw
  • Download

Lines Matching refs:testing

6 [ -f testing.sh ] && . testing.sh
10 testing "unknown argument" 'sort --oops 2>/dev/null ; echo $?' "2\n" "" ""
11 testing "sort" "sort input" "a\nb\nc\n" "c\na\nb\n" ""
12 testing "#2" "sort input" "010\n1\n3\n" "3\n1\n010\n" ""
13 testing "stdin" "sort" "a\nb\nc\n" "" "b\na\nc\n"
14 testing "numeric" "sort -n input" "1\n3\n010\n" "3\n1\n010\n" ""
15 testing "reverse" "sort -r input" "wook\nwalrus\npoint\npabst\naargh\n" \
17 testing "sort -o" "sort input -o output && cat output" "a\nb\nc\n" "c\na\nb\n" ""
18 testing "sort -o same" "sort input -o input && cat input" "a\nb\nc\n" "c\na\nb\n" ""
32 testing "one key" "sort -k4,4 input" \
44 testing "key range with numeric option" "sort -k2,3n input" \
55 testing "key range with numeric option and global reverse" \
67 testing "key range with multiple options" "sort -k2,3rn input" \
75 testing "key doesn't strip leading blanks, disables fallback global sort" \
80 testing "key edge case with -t" "sort -n -k4 -t/" \
91 testing "-x" "sort -x" "010\na0\n 0c0\n" "" "a0\n010\n 0c0\n"
95 testing "" "sort -k2,2f" "A b b\na B C\na B a\n" "" "a B a\nA b b\na B C\n"
96 testing "" "sort -k2,2" "a B C\na B a\nA b b\n" "" "a B a\nA b b\na B C\n"
97 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"
98 testing "" "sort -t, -k3n" "3,4,1,2\n4,1,2,3\n1,2,3,4\n2,3,4,1\n" "" \
100 testing "-kx" "sort -k1,1x" "3\na\n0c\n" "" "0c\na\n3\n"
102 testing "" "sort -V" "toy-2.37.tar.gz\ntoy-3.4.tar.gz\ntoy-3.12.tar.gz\ntoy-4.16-rc2.tar.gz\ntoy-4.…
108 testing "-g" "sort -g" \