From be6589907a738b7e8df770b966187f901acce275 Mon Sep 17 00:00:00 2001 From: mtardy Date: Wed, 17 Jun 2020 14:10:17 +0200 Subject: [PATCH] Fix tests numerotation --- test.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test.sh b/test.sh index c89805e..1b614e7 100755 --- a/test.sh +++ b/test.sh @@ -9,11 +9,11 @@ echo "2--3" | ./${PROG} | cmp <(echo "5") && echo "test#3 passed!" || true echo "-2+3" | ./${PROG} | cmp <(echo "1") && echo "test#4 passed!" || true echo "+2+3" | ./${PROG} | cmp <(echo "5") && echo "test#5 passed!" || true echo "2*3" | ./${PROG} | cmp <(echo "6") && echo "test#6 passed!" || true -echo "4/2" | ./${PROG} | cmp <(echo "2") && echo "test#6 passed!" || true -echo "3/2" | ./${PROG} | cmp <(echo "1") && echo "test#7 passed!" || true -echo "5%2" | ./${PROG} | cmp <(echo "1") && echo "test#8 passed!" || true -echo "3*2+10*2" | ./${PROG} | cmp <(echo "26") && echo "test#9 passed!" || true -echo "-3*2+10*2" | ./${PROG} | cmp <(echo "14") && echo "test#10 passed!" || true -echo "- 5% 2 +2-6 / 2" | ./${PROG} | cmp <(echo "-2") && echo "test#11 passed!" || true +echo "4/2" | ./${PROG} | cmp <(echo "2") && echo "test#7 passed!" || true +echo "3/2" | ./${PROG} | cmp <(echo "1") && echo "test#8 passed!" || true +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 make clean \ No newline at end of file