]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
2004-05-29 Paul Eggert <eggert@cs.ucla.edu>
authorJim Meyering <jim@meyering.net>
Mon, 31 May 2004 12:17:49 +0000 (12:17 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 31 May 2004 12:17:49 +0000 (12:17 +0000)
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.

tests/tr/Test.pm

index 002b723ac92b69414da733f7d9d89012276dbb59..a225b644088a1584ebc52dddff83ba20ebb4407a 100755 (executable)
@@ -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