This commit is contained in:
Kartik Agaram 2018-11-17 20:45:15 -08:00
parent 11a5fffade
commit 95decf9f34
1 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ test `uname` = 'Linux' && examples/ex12
echo factorial
CFLAGS=-g ./subx translate *.subx apps/factorial.subx -o apps/factorial
git diff --quiet apps/factorial
[ "$1" != record ] && git diff --quiet apps/factorial
CFLAGS=-g ./subx run apps/factorial || ret=$?
test $ret -eq 120 # factorial(5)
CFLAGS=-g ./subx run apps/factorial test
@ -142,7 +142,7 @@ test `uname` = 'Linux' && {
echo crenshaw2-1
CFLAGS=-g ./subx translate *.subx apps/crenshaw2-1.subx -o apps/crenshaw2-1
git diff --quiet apps/crenshaw2-1
[ "$1" != record ] && git diff --quiet apps/crenshaw2-1
CFLAGS=-g ./subx run apps/crenshaw2-1 2>crenshaw2-1.out || true
test "`cat crenshaw2-1.out`" = 'Error: integer expected'
test `uname` = 'Linux' && {