summaryrefslogtreecommitdiffstats
path: root/test/03-expression.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/03-expression.txt')
-rw-r--r--test/03-expression.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/03-expression.txt b/test/03-expression.txt
new file mode 100644
index 0000000..4fa1581
--- /dev/null
+++ b/test/03-expression.txt
@@ -0,0 +1,17 @@
+%% Test basic expressions.
+%mode init
+A1=1
+A2=1+2-3*2
+A3=1*2+1
+A4=20*(3+4)
+A5=(20*3)+4
+%calc
+%mode result
+A1=1
+A2=-3
+A3=3
+A4=140
+A5=64
+%check
+%exit
+