mirror of
https://github.com/sheumann/hush.git
synced 2024-12-28 07:30:23 +00:00
caa79406aa
The source command does not search $PWD, and bash recently fixed itself to follow this behavior for /bin/sh. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
32 lines
759 B
Bash
Executable File
32 lines
759 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Copyright 2009 by Denys Vlasenko <vda.linux@googlemail.com>
|
|
# Licensed under GPL v2, see file LICENSE for details.
|
|
|
|
. ./testing.sh
|
|
|
|
# testing "description" "arguments" "result" "infile" "stdin"
|
|
|
|
testing "tr does not treat [] in [a-z] as special" \
|
|
"tr '[q-z]' '_Q-Z+'" \
|
|
"_QWe+" "" "[qwe]"
|
|
|
|
testing "tr understands 0-9A-F" \
|
|
"tr -cd '[0-9A-F]'" \
|
|
"19AF" "" "19AFH\n"
|
|
|
|
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
|