summaryrefslogtreecommitdiffstats
path: root/test/01-inline-array-mul.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/01-inline-array-mul.txt')
-rw-r--r--test/01-inline-array-mul.txt35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/01-inline-array-mul.txt b/test/01-inline-array-mul.txt
new file mode 100644
index 0000000..2b7b1e2
--- /dev/null
+++ b/test/01-inline-array-mul.txt
@@ -0,0 +1,35 @@
+%% Test for inline array with multiplication.
+%mode init
+{A1:B2}{={1,2;3,4}*10}
+{A3:B4}{=10*{2,3;4,5}}
+{A5:B6}{=A1:B2*2}
+{A7:B8}{=3*A1:B2}
+{A9:B10}{={2,3;4,5}*{9,8;7,6}}
+{A11:D11}{={1,2,3,"C"}*{4,"A","B",2}}
+%calc
+%mode result
+A1=10
+B1=20
+A2=30
+B2=40
+A3=20
+B3=30
+A4=40
+B4=50
+A5=20
+B5=40
+A6=60
+B6=80
+A7=30
+B7=60
+A8=90
+B8=120
+A9=18
+B9=24
+A10=28
+B10=30
+A11=4
+B11=#VALUE!
+C11=#VALUE!
+D11=#VALUE!
+%check