use new logmsg and set --show in tests

This commit is contained in:
Kurtis Rader 2017-08-04 12:04:32 -07:00
parent abc9be0250
commit e198ed0b2d
3 changed files with 10 additions and 4 deletions

View File

@ -14,6 +14,12 @@ read: Expected 1 args, got 2
####################
# Test splitting input with IFS empty
####################
# read -n tests
####################
# read -z tests
####################
# Chunked read tests

View File

@ -95,8 +95,7 @@ set -le IFS
# read -n tests
echo
echo '# read -n tests'
logmsg read -n tests
echo 'testing' | read -n 3 foo
echo $foo
echo 'test' | read -n 10 foo
@ -111,8 +110,7 @@ echo $foo
# read -0 tests
echo
echo '# read -z tests'
logmsg read -z tests
echo -n 'testing' | read -lz foo
echo $foo
echo -n 'test ing' | read -lz foo

View File

@ -47,6 +47,7 @@ two
1 'h'
0
####################
# read -n tests
tes
test
@ -55,6 +56,7 @@ tes
tin
t
####################
# read -z tests
testing
test ing