diff options
Diffstat (limited to 'tests/tr/failures')
-rw-r--r-- | tests/tr/failures | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/tests/tr/failures b/tests/tr/failures index abc78da50..8e806dbef 100644 --- a/tests/tr/failures +++ b/tests/tr/failures @@ -1,14 +1,18 @@ # ./tr a '[c*]b' # ./tr -s abc zy # ./tr abc zy -tr a '[:not-a-class:]' -tr a '[:digit:]' -tr '[c*]' k -tr a '[=c=]' -tr a '[c*][c*]' -tr -ds abd '[c*]' -tr -c '[:lower:]' '[:upper:]' -tr '[:lower:]' '[:lower:]' -tr '0-9[:lower:]' '[:upper:]' -tr -s '\432' -tr a '' +tr a '[:not-a-class:]' < /dev/null +tr a '[:digit:]' < /dev/null +tr '[c*]' k < /dev/null +tr a '[=c=]' < /dev/null +tr a '[c*][c*]' < /dev/null +tr -ds abd '[c*]' < /dev/null +tr -c '[:lower:]' '[:upper:]' < /dev/null +tr '[:lower:]' '[:lower:]' < /dev/null +tr '0-9[:lower:]' '[:upper:]' < /dev/null +tr a '' < /dev/null +tr -s '\432' < /dev/null +tr a 'abc\' < /dev/null +tr a '\x' < /dev/null + +# And make sure tr does the right thing when POSIXLY_... is set. |