mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 16:22:45 +08:00
add test case for 6b243fbc
This commit is contained in:
parent
6b243fbcd3
commit
fefd17fe5e
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
#Test aliases loops and conditionals
|
||||
#Test aliases, loops, conditionals and some basic elements
|
||||
#
|
||||
|
||||
for i in 1 2 #Comment on same line as command
|
||||
|
@ -51,3 +51,14 @@ for i in Test for continue break and switch builtins problems;
|
|||
end
|
||||
end
|
||||
|
||||
set -l sta
|
||||
if eval true
|
||||
if eval false
|
||||
set sta fail
|
||||
else
|
||||
set sta pass
|
||||
end
|
||||
else
|
||||
set sta fail
|
||||
end
|
||||
echo Test 4 $sta
|
||||
|
|
|
@ -5,3 +5,4 @@
|
|||
Test 2 pass
|
||||
Test pass
|
||||
Test 3 pass
|
||||
Test 4 pass
|
||||
|
|
Loading…
Reference in New Issue
Block a user