diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-01-25 19:40:19 +0100 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-01-26 14:02:08 +0100 |
commit | 26fba6fc94ff252ce79d478437cb0e60d3544a30 (patch) | |
tree | 097891e7943bee392e625291f80bf348697729e0 /examples | |
parent | c592202345f7dfcb1d4c5ba5eb0199f44e8d9c45 (diff) | |
download | bison-26fba6fc94ff252ce79d478437cb0e60d3544a30.tar.gz |
examples: more tests
* examples/c/mfcalc/mfcalc.test: here.
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/c/mfcalc/mfcalc.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/c/mfcalc/mfcalc.test b/examples/c/mfcalc/mfcalc.test index 0d7b06a4..2e759ee5 100755 --- a/examples/c/mfcalc/mfcalc.test +++ b/examples/c/mfcalc/mfcalc.test @@ -25,3 +25,15 @@ cat >input <<EOF EOF run 0 9 run -noerr 0 9 -p + +cat >input <<EOF +a = 256 +sqrt (a) +EOF +run 0 '256 +16' + +cat >input <<EOF +16 == 12 +EOF +run 0 'err: syntax error' |