add test case for 6b243fbc

This commit is contained in:
Grissiom 2010-11-23 23:05:21 +08:00
parent 6b243fbcd3
commit fefd17fe5e
2 changed files with 13 additions and 1 deletions

View File

@ -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

View File

@ -5,3 +5,4 @@
Test 2 pass
Test pass
Test 3 pass
Test 4 pass