aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Grissiom <chaos.proton@gmail.com>2010-11-23 23:05:21 +0800
committerGravatar Grissiom <chaos.proton@gmail.com>2010-11-23 23:05:21 +0800
commitfefd17fe5e8ae629dff0ccb0565d0dcfb3a5efb0 (patch)
tree4d867d5158bb09b200efcea320b86f36b6a3b285
parent6b243fbcd35f57633066d6d948845d8ad7818239 (diff)
add test case for 6b243fbc
-rw-r--r--tests/test1.in13
-rw-r--r--tests/test1.out1
2 files changed, 13 insertions, 1 deletions
diff --git a/tests/test1.in b/tests/test1.in
index 3b3ba25f..9cf80a12 100644
--- a/tests/test1.in
+++ b/tests/test1.in
@@ -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
diff --git a/tests/test1.out b/tests/test1.out
index 64b65faa..e0e258d4 100644
--- a/tests/test1.out
+++ b/tests/test1.out
@@ -5,3 +5,4 @@
Test 2 pass
Test pass
Test 3 pass
+Test 4 pass