mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 18:30:20 +08:00
use new logmsg
and set --show
in tests
This commit is contained in:
parent
abc9be0250
commit
e198ed0b2d
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user