diff options
Diffstat (limited to 'test.sh')
-rwxr-xr-x | test.sh | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -0,0 +1,19 @@ +#!/bin/sh + +run() { + prog=$1 + desired=$2 + out=`./build/tuplr $prog` + if [ "$out" != "$desired" ]; then + echo "FAIL: $prog"; + echo " Expected: \"$desired\""; + echo " Output: \"$out\""; + else + echo "PASS: $prog" + fi +} + +run './test/ack.tpr' '8189 : Int' +run './test/def.tpr' '3 : Int' +run './test/fac.tpr' '720 : Int' +run './test/nest.tpr' '6 : Int' |