]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: add '--ignore-case' tests for uniq
authorAssaf Gordon <assafgordon@gmail.com>
Tue, 12 Feb 2013 15:30:25 +0000 (10:30 -0500)
committerPádraig Brady <P@draigBrady.com>
Thu, 28 Feb 2013 03:36:35 +0000 (03:36 +0000)
* tests/misc/uniq.pl: add tests for --ignore-case.

tests/misc/uniq.pl

index 140a49b4e03d026fb4637ed4e86ab2150b6d0668..e3873b5771bb70e5c689c8f3e358f5223557370a 100755 (executable)
@@ -199,6 +199,10 @@ my @Tests =
  # Check that --zero-terminated is synonymous with -z.
  ['123', '--zero-terminated', {IN=>"a\na\nb"}, {OUT=>"a\na\nb\0"}],
  ['124', '--zero-terminated', {IN=>"a\0a\0b"}, {OUT=>"a\0b\0"}],
+ # Check ignore-case
+ ['125', '',              {IN=>"A\na\n"}, {OUT=>"A\na\n"}],
+ ['126', '-i',            {IN=>"A\na\n"}, {OUT=>"A\n"}],
+ ['127', '--ignore-case', {IN=>"A\na\n"}, {OUT=>"A\n"}],
 );
 
 # Set _POSIX2_VERSION=199209 in the environment of each obs-plus* test.