add unit test for echo -h

This commit is contained in:
Kurtis Rader 2017-06-18 22:25:00 -07:00
parent 82f5fb507d
commit 2302db4dc7
2 changed files with 6 additions and 4 deletions

View File

@ -114,7 +114,8 @@ begin ; echo is_stdout ; end 2>| cat > /dev/null
begin ; echo is_stderr 1>&2 ; end 2>| cat > /dev/null
# echo tests
echo
echo '# echo tests'
echo 'abc\ndef'
echo -e 'abc\ndef'
echo -e 'abc\zdef'
@ -125,11 +126,9 @@ echo -e 'abc\1212def'
echo -e 'abc\cdef' # won't output a newline!
echo ''
echo -
echo -h
echo -ne '\376' | display_bytes
echo -e Catch your breath
echo -e 'abc\x21def'
echo -e 'abc\x211def'

View File

@ -27,6 +27,8 @@ errput
output
caret_no_redirect 12345^
is_stdout
# echo tests
abc\ndef
abc
def
@ -37,6 +39,7 @@ abcQdef
abcQ2def
abc
-
-h
0000000 376
0000001
Catch your breath