Revert "Update tests"

This reverts commit 36367e4882.
This commit is contained in:
Aaron Gyes 2018-11-28 06:27:21 -08:00
parent fe67cc4f6e
commit 5615351f27
8 changed files with 19 additions and 19 deletions

View File

@ -1,13 +1,13 @@
#################### ####################
# Slices # Slices
../test/root/bin/fish: Invalid index value fish: Invalid index value
echo "$foo[d]" echo "$foo[d]"
^ ^
../test/root/bin/fish: Invalid index value fish: Invalid index value
echo $foo[d] echo $foo[d]
^ ^
../test/root/bin/fish: Invalid index value fish: Invalid index value
echo ()[d] echo ()[d]
^ ^
@ -16,7 +16,7 @@ echo ()[d]
#################### ####################
# Catch your breath # Catch your breath
../test/root/bin/fish: $) is not a valid variable in fish. fish: $) is not a valid variable in fish.
echo $$paren echo $$paren
^ ^

View File

@ -7,13 +7,13 @@
#################### ####################
# Testing -V with changed variables # Testing -V with changed variables
../test/root/bin/fish: function: Illegal function name '-a' fish: function: Illegal function name '-a'
function -a arg1 arg2 name2 ; end function -a arg1 arg2 name2 ; end
^ ^
../test/root/bin/fish: function: Illegal function name '--argument-names' fish: function: Illegal function name '--argument-names'
function --argument-names arg1 arg2 name4 ; end function --argument-names arg1 arg2 name4 ; end
^ ^
../test/root/bin/fish: function: Unexpected positional argument 'abc' fish: function: Unexpected positional argument 'abc'
function name5 abc --argument-names def ; end function name5 abc --argument-names def ; end
^ ^
@ -25,7 +25,7 @@ function name5 abc --argument-names def ; end
#################### ####################
# Checking reserved names # Checking reserved names
../test/root/bin/fish: function: The name 'test' is reserved, fish: function: The name 'test' is reserved,
and can not be used as a function name and can not be used as a function name
function test; echo banana; end function test; echo banana; end
^ ^

View File

@ -1,4 +1,4 @@
<W> ../test/root/bin/fish: An error occurred while redirecting file '.' <W> fish: An error occurred while redirecting file '.'
open: Is a directory open: Is a directory
status: Invalid combination of options, status: Invalid combination of options,
you cannot do both 'is-interactive' and 'is-login' in the same invocation you cannot do both 'is-interactive' and 'is-login' in the same invocation

View File

@ -34,7 +34,7 @@
#################### ####################
# For loops with read-only vars is an error (#4342) # For loops with read-only vars is an error (#4342)
../test/root/bin/fish: You cannot use read-only variable 'status' in a for loop fish: You cannot use read-only variable 'status' in a for loop
for status in a b c for status in a b c
^ ^

View File

@ -1,3 +1,3 @@
../test/root/bin/fish: No matches for wildcard '*ee*'. See `help expand`. fish: No matches for wildcard '*ee*'. See `help expand`.
case *ee* case *ee*
^ ^

View File

@ -4,14 +4,14 @@
#################### ####################
# Command sub at the limit should fail # Command sub at the limit should fail
../test/root/bin/fish: Too much data emitted by command substitution so it was discarded fish: Too much data emitted by command substitution so it was discarded
set b (string repeat -n 512 x) set b (string repeat -n 512 x)
^ ^
#################### ####################
# Command sub over the limit should fail # Command sub over the limit should fail
../test/root/bin/fish: Too much data emitted by command substitution so it was discarded fish: Too much data emitted by command substitution so it was discarded
set -l x (string repeat -n $argv x) set -l x (string repeat -n $argv x)
^ ^
@ -28,7 +28,7 @@ in command substitution
#################### ####################
# Same builtin in a command substitution is affected # Same builtin in a command substitution is affected
../test/root/bin/fish: Too much data emitted by command substitution so it was discarded fish: Too much data emitted by command substitution so it was discarded
echo this will fail (string repeat --max 513 b) to output anything echo this will fail (string repeat --max 513 b) to output anything
^ ^

View File

@ -1,6 +1,6 @@
../test/root/bin/fish: The expanded command was empty. fish: The expanded command was empty.
$EMPTY_VARIABLE $EMPTY_VARIABLE
^ ^
../test/root/bin/fish: The expanded command was empty. fish: The expanded command was empty.
"$EMPTY_VARIABLE" "$EMPTY_VARIABLE"
^ ^

View File

@ -1,9 +1,9 @@
../test/root/bin/fish: array indices start at 1, not 0. fish: array indices start at 1, not 0.
echo $foo[0] echo $foo[0]
^ ^
../test/root/bin/fish: array indices start at 1, not 0. fish: array indices start at 1, not 0.
echo $foo[ 0 ] echo $foo[ 0 ]
^ ^
../test/root/bin/fish: array indices start at 1, not 0. fish: array indices start at 1, not 0.
echo $foo[ 00 ] echo $foo[ 00 ]
^ ^