summaryrefslogtreecommitdiff
path: root/run_tests.sh
diff options
context:
space:
mode:
authorbd-912 <bdunahu@colostate.edu>2024-03-04 22:56:15 -0700
committerbd-912 <bdunahu@colostate.edu>2024-03-04 22:56:15 -0700
commit9dfeb14f493c9fa4bc2b50ca644e90c16bec05f3 (patch)
treedef4a051860862786caed01e504aa5bef685b498 /run_tests.sh
parent12f1e24766b061e00663e1934b76f64cd79c8fea (diff)
Minor cleanup
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
-
-