summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-05-31 12:17:49 +0000
committerJim Meyering <jim@meyering.net>2004-05-31 12:17:49 +0000
commitd6e5e7b49e866d8605c92926b38f38f38f20e846 (patch)
tree77b8ec1025921cc9e237898535c52f58a836f6b7
parentb6220a928fde2292b12c525db8e7f6bd53c963b5 (diff)
downloadcoreutils-d6e5e7b49e866d8605c92926b38f38f38f20e846.tar.xz
2004-05-29 Paul Eggert <eggert@cs.ucla.edu>
tr cleanup, mostly having to do with integer type ranges. Remove all casts. * tests/tr/Test.pm: Add a few tests for the below. Alas, most of the test cases wouldn't be portable, or would take too much CPU time, or both.
-rwxr-xr-xtests/tr/Test.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/tr/Test.pm b/tests/tr/Test.pm
index 002b723ac..a225b6440 100755
--- a/tests/tr/Test.pm
+++ b/tests/tr/Test.pm
@@ -103,6 +103,12 @@ my @tv = (
['empty-eq', q|'[==]' x|, '', '', 1],
['empty-cc', q|'[::]' x|, '', '', 1],
+# Weird repeat counts.
+['repeat-bs-9', q|abc '[b*\9]'|, 'abcd', '[b*d', 0],
+['repeat-0', q|abc '[b*0]'|, 'abcd', 'bbbd', 0],
+['repeat-000', q|abc '[b*00000000000000000000]'|, 'abcd', 'bbbd', 0],
+['repeat-compl', '-c ' . q|'[a*65536]\n' '[b*]'|, 'abcd', 'abbb', 0],
+
);
sub test_vector