From: Jim Meyering Date: Sun, 10 Jun 2001 08:44:49 +0000 (+0000) Subject: Add a test based on a report from Herbert Xu. X-Git-Tag: CPPI-1_9~27 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=d18b37d719b7fe14fd15b2906cbddc0aa153dab8;p=thirdparty%2Fcoreutils.git Add a test based on a report from Herbert Xu. --- diff --git a/tests/sort/Test.pm b/tests/sort/Test.pm index b8c752066f..fbf350657d 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],