summaryrefslogtreecommitdiff
path: root/tests/sort/Test.pm
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-06-10 08:44:49 +0000
committerJim Meyering <jim@meyering.net>2001-06-10 08:44:49 +0000
commitd18b37d719b7fe14fd15b2906cbddc0aa153dab8 (patch)
tree43932a142246de243ce05a45e084bc2266098ad7 /tests/sort/Test.pm
parent3384735e066d6b7974646105e29766efb06511d4 (diff)
downloadcoreutils-d18b37d719b7fe14fd15b2906cbddc0aa153dab8.tar.xz
Add a test based on a report from Herbert Xu.
Diffstat (limited to 'tests/sort/Test.pm')
-rwxr-xr-xtests/sort/Test.pm9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/sort/Test.pm b/tests/sort/Test.pm
index b8c752066..fbf350657 100755
--- a/tests/sort/Test.pm
+++ b/tests/sort/Test.pm
@@ -27,11 +27,12 @@ my @tv = (
#
["02a", '-c', "A\nB\nC\n", '', 0],
["02b", '-c', "A\nC\nB\n", '', 1],
+["02c", '-c -k1,1', "a\na b\n", '', 0],
# This should fail because there are duplicate keys
-["02c", '-cu', "A\nA\n", '', 1],
-["02d", '-cu', "A\nB\n", '', 0],
-["02e", '-cu', "A\nB\nB\n", '', 1],
-["02f", '-cu', "B\nA\nB\n", '', 1],
+["02m", '-cu', "A\nA\n", '', 1],
+["02n", '-cu', "A\nB\n", '', 0],
+["02o", '-cu', "A\nB\nB\n", '', 1],
+["02p", '-cu', "B\nA\nB\n", '', 1],
#
["03a", '-k1', "B\nA\n", "A\nB\n", 0],
["03b", '-k1,1', "B\nA\n", "A\nB\n", 0],