summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-01-18 19:50:28 +0000
committerJim Meyering <jim@meyering.net>2002-01-18 19:50:28 +0000
commite2c1c2e5290bb415738ed38c6803fff5772d3c3b (patch)
treea5a41adab4bac6f5f1aa89186ca56c2a4c2ec83c /tests
parent067c2ea9211fe447088abf0d1aa1e04a0ef8758b (diff)
downloadcoreutils-e2c1c2e5290bb415738ed38c6803fff5772d3c3b.tar.xz
Add these tests:
tr '[==]' x tr '[::]' x they should fail, not get a failed assertion.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tr/Test.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/tr/Test.pm b/tests/tr/Test.pm
index 38eaa9d73..002b723ac 100755
--- a/tests/tr/Test.pm
+++ b/tests/tr/Test.pm
@@ -98,6 +98,11 @@ my @tv = (
['ross-5', '-dc ' . q|'[:lower:]'|, '', '', 0],
['ross-6', '-dc ' . q|'[:upper:]'|, '', '', 0],
+# Ensure that these fail.
+# Prior to 2.0.20, each would evoke a failed assertion.
+['empty-eq', q|'[==]' x|, '', '', 1],
+['empty-cc', q|'[::]' x|, '', '', 1],
+
);
sub test_vector