diff options
author | Jim Meyering <jim@meyering.net> | 1993-03-23 02:52:19 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1993-03-23 02:52:19 +0000 |
commit | 4f0f13ad001be68c381caae8efb9d72b3dc89ef1 (patch) | |
tree | 62f5fec50f7a87204d088c2dda1d4e5d5590dc1e /tests/tr | |
parent | 45849c56020d56a3790e0ddea176e5cb94d29323 (diff) | |
download | coreutils-4f0f13ad001be68c381caae8efb9d72b3dc89ef1.tar.xz |
.
Diffstat (limited to 'tests/tr')
-rw-r--r-- | tests/tr/range-tests | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/tests/tr/range-tests b/tests/tr/range-tests index d11c37e12..d13d472cf 100644 --- a/tests/tr/range-tests +++ b/tests/tr/range-tests @@ -1,16 +1,18 @@ -[]*] # What about this?! +[]*] # What about this?! valid [:*096] # invalid: 096 isn't a valid octal number -[:*0] # as many colons as string1 was long +a [:*0] # as many colons as string1 was long (not to be confused + # with a character class) [:*] # ditto -[:*016] # 14 colons (valid only as second arg) +[:*016] # 14 colons [=]=] # valid: equivalence class containing ']' [-a # valid, assuming `[' is before 'a' in collating sequence -] # valid, assuming ` ' is before ']' in collating sequence --] # valid, assuming `-' is before ']' in collating sequence \0-\377 # valid -[\0-\377]# valid, (assuming other string has brackets in same positions) +[\0-\377]# valid, (but brackets will be mapped to corresponding chars + # in other string) abcde[:* # valid, but none of the characters is considered special -abc xyzdef # should this (str2 longer than str1) evoke a warning? - # Probably so if we're only translating, but if deleting or - # squeezing this might make sense. -abcdef : # should map abcdef all to `:', as if str2 had been [:*] +abc xyzdef # Should this (str2 longer than str1) evoke a warning? + # Probably so if we're only translating, but if also deleting or + # squeezing this makes sense. +abcdef : # Map abcdef all to `:', as if str2 had been [:*] |