summaryrefslogtreecommitdiff
path: root/tests/misc
diff options
context:
space:
mode:
authorAssaf Gordon <assafgordon@gmail.com>2013-02-12 10:30:25 -0500
committerPádraig Brady <P@draigBrady.com>2013-02-28 03:36:35 +0000
commit8682142ff2662fbdb77ea0bdaa53ca9e6542c54a (patch)
treeae988663c69025dce3199db64f0383f10f7c43b5 /tests/misc
parent4c4f9e1173f9c48ed4d164cabff7ca5ce48006ee (diff)
downloadcoreutils-8682142ff2662fbdb77ea0bdaa53ca9e6542c54a.tar.xz
tests: add '--ignore-case' tests for uniq
* tests/misc/uniq.pl: add tests for --ignore-case.
Diffstat (limited to 'tests/misc')
-rwxr-xr-xtests/misc/uniq.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/misc/uniq.pl b/tests/misc/uniq.pl
index 140a49b4e..e3873b577 100755
--- a/tests/misc/uniq.pl
+++ b/tests/misc/uniq.pl
@@ -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.