diff options
author | Jim Meyering <jim@meyering.net> | 2004-05-31 12:17:49 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-05-31 12:17:49 +0000 |
commit | d6e5e7b49e866d8605c92926b38f38f38f20e846 (patch) | |
tree | 77b8ec1025921cc9e237898535c52f58a836f6b7 /tests | |
parent | b6220a928fde2292b12c525db8e7f6bd53c963b5 (diff) | |
download | coreutils-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.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/tr/Test.pm | 6 |
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 |