Procházet zdrojové kódy

Add tests for simple variables

pull/1/head
mtardy před 4 roky
rodič
revize
8de3ac90aa
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. +3
    -0
      test.sh

+ 3
- 0
test.sh Zobrazit soubor

@ -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

Načítá se…
Zrušit
Uložit