mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 13:08:49 +00:00
Fix unit tests for read to stdout behavior
This commit is contained in:
parent
8ffc3ab242
commit
101ada83cb
4 changed files with 8 additions and 4 deletions
|
@ -1,7 +1,6 @@
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# Read with no vars is an error
|
# Read with no vars is not an error
|
||||||
read: Expected at least 1 args, got only 0
|
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# Read with -a and anything other than exactly on var name is an error
|
# Read with -a and anything other than exactly on var name is an error
|
||||||
|
|
|
@ -16,6 +16,11 @@ expect_prompt
|
||||||
|
|
||||||
# read
|
# read
|
||||||
|
|
||||||
|
send_line "read"
|
||||||
|
expect_read_prompt
|
||||||
|
send_line "text"
|
||||||
|
expect_prompt
|
||||||
|
|
||||||
send_line "read foo"
|
send_line "read foo"
|
||||||
expect_read_prompt
|
expect_read_prompt
|
||||||
send_line "text"
|
send_line "text"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# Test read builtin and IFS.
|
# Test read builtin and IFS.
|
||||||
#
|
#
|
||||||
|
|
||||||
logmsg Read with no vars is an error
|
logmsg Read with no vars is not an error
|
||||||
read
|
read
|
||||||
|
|
||||||
logmsg Read with -a and anything other than exactly on var name is an error
|
logmsg Read with -a and anything other than exactly on var name is an error
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# Read with no vars is an error
|
# Read with no vars is not an error
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# Read with -a and anything other than exactly on var name is an error
|
# Read with -a and anything other than exactly on var name is an error
|
||||||
|
|
Loading…
Reference in a new issue