projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
491d6e3
)
tr: update testsuite
author
Denis Vlasenko
<vda.linux@googlemail.com>
Mon, 2 Mar 2009 12:07:15 +0000
(12:07 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Mon, 2 Mar 2009 12:07:15 +0000
(12:07 -0000)
testsuite/tr.tests
patch
|
blob
|
history
diff --git
a/testsuite/tr.tests
b/testsuite/tr.tests
index 7339ccff253af5ccc2a05a1e40c37ecef3f347bc..f91cc1f657462cb77855388a2a0a1fd1e8130c42 100644
(file)
--- 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