aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-09-28 03:40:25 +1000
committerGravatar axel <axel@liljencrantz.se>2005-09-28 03:40:25 +1000
commit1ecfc8e4c66e97125be87dfa034190df8de61a2c (patch)
tree4f86acd8a00d8ba8d63bde497d5ceab9ecad459a /tests
parent8c7c3bd7874ed95bfa2a5a69199245ee5aa1b6f0 (diff)
Minor fix in testsuite
darcs-hash:20050927174025-ac50b-554f6bf9aefc2da0b5a40baebb44bcd02a933704.gz
Diffstat (limited to 'tests')
-rw-r--r--tests/test3.in48
1 files changed, 24 insertions, 24 deletions
diff --git a/tests/test3.in b/tests/test3.in
index 8c197bca..5ddf29ba 100644
--- a/tests/test3.in
+++ b/tests/test3.in
@@ -24,25 +24,25 @@ end
set -e t3
if true
- set -l t3 bar
+ set -l t3 bar
end
if test $t3
- echo Test 3 fail
+ echo Test 3 fail
else
- echo Test 3 pass
+ echo Test 3 pass
end
# Test if globals can be set in block scope
if true
- set -g baz qux
+ set -g baz qux
end
if test $baz = qux
- echo Test 4 pass
+ echo Test 4 pass
else
- echo Test 4 fail
+ echo Test 4 fail
end
@@ -51,13 +51,13 @@ end
set t5 a
if true
- set t5 b
+ set t5 b
end
if test $t5 = b
- echo Test 5 pass
+ echo Test 5 pass
else
- echo Test 5 fail
+ echo Test 5 fail
end
# Test that scope is preserved in double blocks
@@ -65,7 +65,7 @@ end
for i in 1
set t6 $i
for j in a
- if test $t6$j = 1a
+ if test $t6$j = 1a
echo Test 6 pass
else
echo Test 6 fail
@@ -79,13 +79,13 @@ end
set res fail
for i in 1 2
- if test $i = 1
- set t7 b
- else
- if test $t7 = b
- set res pass
- end
- end
+ if test $i = 1
+ set t7 b
+ else
+ if test $t7 = b
+ set res pass
+ end
+ end
end
echo Test 7 $res
@@ -94,20 +94,20 @@ echo Test 7 $res
set -e t8
if true
- set -lx t8 foo
- if test (fish -c "echo $t8") = foo
- echo Test 8 pass
+ set -lx t8 foo
+ if test (../fish -c "echo $t8") = foo
+ echo Test 8 pass
else
- echo Test 8 fail
+ echo Test 8 fail
end
end
# Test if exported variables go out of scope
-if test (../fish -c "echo $t8") = foo
- echo Test 9 fail
+if test (../fish -c "echo $t8")
+ echo Test 9 fail
else
- echo Test 9 pass
+ echo Test 9 pass
end