aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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