diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-03-04 22:56:15 -0700 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-03-04 22:56:15 -0700 |
commit | 9dfeb14f493c9fa4bc2b50ca644e90c16bec05f3 (patch) | |
tree | def4a051860862786caed01e504aa5bef685b498 /run_tests.sh | |
parent | 12f1e24766b061e00663e1934b76f64cd79c8fea (diff) |
Minor cleanup
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-x | run_tests.sh | 8 |
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 - - |