summaryrefslogtreecommitdiff
path: root/tests/test/Test.pm
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-06-07 14:40:04 +0000
committerJim Meyering <jim@meyering.net>1998-06-07 14:40:04 +0000
commit500594433a7ba937f250887541eb51107ada55e6 (patch)
tree0ea48b5880d9ea04a1fb50d8345e44593d0d2719 /tests/test/Test.pm
parented1fdb8841bb741e45dc0a59f0dc87d0aa2267b1 (diff)
downloadcoreutils-500594433a7ba937f250887541eb51107ada55e6.tar.xz
*** empty log message ***
Diffstat (limited to 'tests/test/Test.pm')
-rw-r--r--tests/test/Test.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test/Test.pm b/tests/test/Test.pm
index b94c0c29e..acf4972d1 100644
--- a/tests/test/Test.pm
+++ b/tests/test/Test.pm
@@ -81,6 +81,17 @@ sub test_vector
}
}
+ # Generate a negated and a double-negated version of each test.
+ # There are a few exceptions.
+ my %not_invertible = map {$_ => 1} qw (1a inv-1 t1);
+ foreach $t (@tvec)
+ {
+ my ($test_name, $flags, $in, $exp, $ret) = @$t;
+ next if $not_invertible{$test_name};
+ push (@tv, ["N-$test_name", "! '(' $flags ')'", $in, $exp, 1 - $ret]);
+ push (@tv, ["NN-$test_name", "! ! '(' $flags ')'", $in, $exp, $ret]);
+ }
+
return (@tv, @tvec);
}