summaryrefslogtreecommitdiffhomepage
path: root/testsuite
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-03-02 12:07:15 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-03-02 12:07:15 +0000
commit37ad6b323de2a7e7aabbd8e8c2f00a511548ae8b (patch)
treefeea4f671b49739b58ed700292b4bdf8ab3f29bc /testsuite
parent491d6e3b568967138d3e34c013e925f7b4bf3f08 (diff)
tr: update testsuite
Diffstat (limited to 'testsuite')
-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:]" \
"tr -cd '[:xdigit:]'" \
"19AF" "" "19AFH\n"
+testing "tr does not stop after [:digit:]" \
+ "tr '[:digit:]y-z' 111111111123" \
+ "111abcx23\n" "" "789abcxyz\n"
+
+testing "tr has correct xdigit sequence" \
+ "tr '[:xdigit:]Gg' 1111111151242222333330xX" \
+ "#1111111151242222x333330X\n" "" \
+ "#0123456789ABCDEFGabcdefg\n"
+
exit $FAILCOUNT