From 8de3ac90aaef73fc068efda03ec667d238d62279 Mon Sep 17 00:00:00 2001 From: mtardy Date: Wed, 17 Jun 2020 19:17:33 +0200 Subject: [PATCH] Add tests for simple variables --- test.sh | 3 +++ 1 file changed, 3 insertions(+) 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