瀏覽代碼

Add tests for simple variables

pull/1/head
mtardy 4 年之前
父節點
當前提交
8de3ac90aa
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. +3
    -0
      test.sh

+ 3
- 0
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

Loading…
取消
儲存