mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-01 00:16:33 +08:00
fix bug in test3
The change for issue #4163 brought to light a bug in tests/test.in.
This commit is contained in:
parent
b759ba8a3d
commit
d51f82d1b5
|
@ -47,17 +47,17 @@ else
|
||||||
end
|
end
|
||||||
|
|
||||||
function foo
|
function foo
|
||||||
printf 'Test %s' $1; echo ' pass'
|
printf 'Test %s' $argv[1]; echo ' pass'
|
||||||
end
|
end
|
||||||
|
|
||||||
foo 3
|
foo 3a
|
||||||
|
|
||||||
for i in Test for continue break and switch builtins problems;
|
for i in Test for continue break and switch builtins problems;
|
||||||
switch $i
|
switch $i
|
||||||
case Test
|
case Test
|
||||||
printf "%s " $i
|
printf "%s " $i
|
||||||
case "f??"
|
case "f??"
|
||||||
printf "%s " 3
|
printf "%s " 3b
|
||||||
case "c*"
|
case "c*"
|
||||||
echo pass
|
echo pass
|
||||||
case break
|
case break
|
||||||
|
|
|
@ -14,8 +14,8 @@ a
|
||||||
b
|
b
|
||||||
c
|
c
|
||||||
Test 2 pass
|
Test 2 pass
|
||||||
Test pass
|
Test 3a pass
|
||||||
Test 3 pass
|
Test 3b pass
|
||||||
Test 4 pass
|
Test 4 pass
|
||||||
1
|
1
|
||||||
0
|
0
|
||||||
|
|
|
@ -220,7 +220,6 @@ begin
|
||||||
|
|
||||||
set -q __fish_test_universal_variables_variable_foo
|
set -q __fish_test_universal_variables_variable_foo
|
||||||
and echo __fish_test_universal_variables_variable_foo should set after test16 inner begin..end
|
and echo __fish_test_universal_variables_variable_foo should set after test16 inner begin..end
|
||||||
#set -e __fish_test_universal_variables_variable_foo
|
|
||||||
end
|
end
|
||||||
|
|
||||||
test16
|
test16
|
||||||
|
|
Loading…
Reference in New Issue
Block a user