Minor enhancement in test25 and test26

This commit is contained in:
Jeremiah Orians 2019-04-21 16:51:58 -04:00
parent 00df8e2158
commit 06a29d2132
No known key found for this signature in database
GPG Key ID: 5410E91C14959E87
4 changed files with 12 additions and 3 deletions

View File

@ -1 +1,4 @@
echo "hello world"
#! kaem doesn't support shebangs
# but it does allow # line comments
echo "hello" \
"world" # and \ line escapes

View File

@ -65,7 +65,7 @@ then
[ "$out" = "Slow_Lisp 0.1" ] || exit 6
# Verify that the resulting file works
out=$(echo "(* 2 3 7)" | ./test/results/test26-armv7l-binary)
out=$(./test/results/test26-armv7l-binary --file test/test26/test.scm)
[ "$out" = "42" ] || exit 7
fi
exit 0

View File

@ -65,7 +65,7 @@ then
[ "$out" = "Slow_Lisp 0.1" ] || exit 6
# Verify that the resulting file works
out=$(echo "(* 2 3 7)" | ./test/results/test26-x86-binary)
out=$(./test/results/test26-x86-binary --file test/test26/test.scm)
[ "$out" = "42" ] || exit 7
fi
exit 0

6
test/test26/test.scm Normal file
View File

@ -0,0 +1,6 @@
;; A basic test of Slow lisp
;; to ensure it works
(* 2
3
7)
(HALT)