A5 basically works, but buggy

This commit is contained in:
Isaac Shoebottom 2023-11-02 23:35:12 -03:00
parent d4f9dd0c5b
commit fdd01ab0c9

View File

@ -4,11 +4,12 @@
while true; do while true; do
# Capture output of the command # Capture output of the command
output=$(../build/Assignment5 < ../documentation/a5_sample_input_2.txt) output=$(../build/Assignment5 < ../documentation/a5_sample_input_2.txt)
# compare against output3.txt # compare against output3.txt, Else print passed
if [ "$output" != "$(cat output2.txt)" ]; then if [ "$output" != "$(cat output2.txt)" ]; then
echo "Test 2 failed" echo "Test 2 failed"
# show output # show output
echo "$output" echo "$output"
exit 1 exit 1
fi fi
echo "Test 2 passed"
done done