mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 11:43:37 +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
|
# Test splitting input with IFS empty
|
||||||
|
|
||||||
|
####################
|
||||||
|
# read -n tests
|
||||||
|
|
||||||
|
####################
|
||||||
|
# read -z tests
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# Chunked read tests
|
# Chunked read tests
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user