summaryrefslogtreecommitdiff
path: root/src/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/test.sh')
-rwxr-xr-xsrc/test.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test.sh b/src/test.sh
index 603b404..34a6997 100755
--- a/src/test.sh
+++ b/src/test.sh
@@ -34,3 +34,19 @@ for a in ../tests/exec/*.cpp; do
else echo "FAIL $a";
fi;
done;
+
+echo "---"
+echo "Testing TYPING/GOOD for typing"
+for a in ../tests/typing/good/*.cpp; do
+ if ./main.byte $a;
+ then echo "OK $a";
+ else echo "FAIL $a";
+ fi;
+done;
+
+for a in ../tests/typing/bad/*.cpp; do
+ if ./main.byte $a 2> /dev/null;
+ then echo "FAIL $a";
+ else echo "OK $a";
+ fi;
+done;