diff --git a/test.sh b/test.sh index 1b614e7..0e36626 100755 --- a/test.sh +++ b/test.sh @@ -15,5 +15,8 @@ echo "5%2" | ./${PROG} | cmp <(echo "1") && echo "test#9 passed!" || true echo "3*2+10*2" | ./${PROG} | cmp <(echo "26") && echo "test#10 passed!" || true echo "-3*2+10*2" | ./${PROG} | cmp <(echo "14") && echo "test#11 passed!" || true echo "- 5% 2 +2-6 / 2" | ./${PROG} | cmp <(echo "-2") && echo "test#12 passed!" || true +echo "a=3" | ./${PROG} | cmp <(echo "3") && echo "test#13 passed!" || true +echo "a=3 a*2" | ./${PROG} | cmp <(printf "3\n6\n") && echo "test#14 passed!" || true +echo "a=10 z=13 A+z" | ./${PROG} | cmp <(printf "10\n13\n23\n") && echo "test#15 passed!" || true make clean \ No newline at end of file