aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testsuite/tr.tests9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tr.tests b/testsuite/tr.tests
index 7339ccff2..f91cc1f65 100644
--- a/testsuite/tr.tests
+++ b/testsuite/tr.tests
@@ -19,4 +19,13 @@ testing "tr understands [:xdigit:]" \
19 "tr -cd '[:xdigit:]'" \ 19 "tr -cd '[:xdigit:]'" \
20 "19AF" "" "19AFH\n" 20 "19AF" "" "19AFH\n"
21 21
22testing "tr does not stop after [:digit:]" \
23 "tr '[:digit:]y-z' 111111111123" \
24 "111abcx23\n" "" "789abcxyz\n"
25
26testing "tr has correct xdigit sequence" \
27 "tr '[:xdigit:]Gg' 1111111151242222333330xX" \
28 "#1111111151242222x333330X\n" "" \
29 "#0123456789ABCDEFGabcdefg\n"
30
22exit $FAILCOUNT 31exit $FAILCOUNT