summaryrefslogtreecommitdiffstats
path: root/test/01-simple-arithmetic.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/01-simple-arithmetic.txt')
-rw-r--r--test/01-simple-arithmetic.txt53
1 files changed, 53 insertions, 0 deletions
diff --git a/test/01-simple-arithmetic.txt b/test/01-simple-arithmetic.txt
new file mode 100644
index 0000000..ddedb39
--- /dev/null
+++ b/test/01-simple-arithmetic.txt
@@ -0,0 +1,53 @@
+%% Test calculation involving dependency resolution.
+%mode init
+A1=1
+A2=A1+10
+A3=A2+A1*30
+A4=(10+20)*A2
+A5=A1-A2+A3*A4
+A6=A1+A3
+A7=A7
+A8=10/0
+A9=A8
+%calc
+%mode result
+A1=1
+A2=11
+A3=41
+A4=330
+A5=13520
+A6=42
+A7=#REF!
+A8=#DIV/0!
+A9=#DIV/0!
+%check
+%mode edit
+A6=A1+A2
+%recalc
+%mode result
+A1=1
+A2=11
+A3=41
+A4=330
+A5=13520
+A6=12
+A7=#REF!
+A8=#DIV/0!
+A9=#DIV/0!
+%check
+%mode edit
+A1=10
+%recalc
+%mode result
+A1=10
+A2=20
+A3=320
+A4=600
+A5=191990
+A6=30
+A7=#REF!
+A8=#DIV/0!
+A9=#DIV/0!
+%check
+%exit
+