diff options
Diffstat (limited to 'tests/icon/accept/calculate.zc')
| -rw-r--r-- | tests/icon/accept/calculate.zc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/icon/accept/calculate.zc b/tests/icon/accept/calculate.zc new file mode 100644 index 0000000..77ba7ea --- /dev/null +++ b/tests/icon/accept/calculate.zc @@ -0,0 +1,8 @@ +include rt; +include run; +include icon; +fn main() { + let q = run.tokens("(3 + 4) * (8 - 2)"); + rt.put_n(icon.calculate(q, 0, q[0])); rt.put_c(10); + return 0; +} |
