From d18b37d719b7fe14fd15b2906cbddc0aa153dab8 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 10 Jun 2001 08:44:49 +0000 Subject: Add a test based on a report from Herbert Xu. --- tests/sort/Test.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tests/sort') 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], -- cgit v1.2.3-70-g09d2