summaryrefslogtreecommitdiff
path: root/run_tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-xrun_tests.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/run_tests.sh b/run_tests.sh
index 4a7c056..6c63a22 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -2,12 +2,10 @@
for i in ./tests/*.java; do
[ -f "$i" ] || break
- [[ "$i" == *"error"* ]] && expected="Type error" ||
- expected="Program type checked successfully"
- actual=$(java Typecheck < $i)
+ [[ "$i" == *"error"* ]] && expected="Type error" ||
+ expected="Program type checked successfully"
+ actual=$(java Typecheck < $i)
echo -n "$(basename ${i}): "
[[ $expected != $actual ]] && echo -e "FAILED---Expected: $expected" || echo 'PASSED'
done
-
-