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 # Test splitting input with IFS empty
####################
# read -n tests
####################
# read -z tests
#################### ####################
# Chunked read tests # Chunked read tests

View File

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

View File

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