summaryrefslogtreecommitdiffstats
path: root/test/01-inline-array-op-rhs.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/01-inline-array-op-rhs.txt')
-rw-r--r--test/01-inline-array-op-rhs.txt54
1 files changed, 54 insertions, 0 deletions
diff --git a/test/01-inline-array-op-rhs.txt b/test/01-inline-array-op-rhs.txt
new file mode 100644
index 0000000..e3590be
--- /dev/null
+++ b/test/01-inline-array-op-rhs.txt
@@ -0,0 +1,54 @@
+%% Test for inline arrays
+%mode init
+{A1:B2}{=2+{1,2;4,5}}
+{A3:B4}{=2-{1,2;4,5}}
+{A5:B6}{=2={1,2;4,5}}
+{A7:B8}{=2<>{1,2;4,5}}
+{A9:B10}{=2<{1,2;4,5}}
+{A11:B12}{=2<={1,2;4,5}}
+{A13:B14}{=2>{1,2;4,5}}
+{A15:B16}{=2>={1,2;4,5}}
+%calc
+%mode result
+%% 2+{...}
+A1=3
+B1=4
+A2=6
+B2=7
+%% 2-{...}
+A3=1
+B3=0
+A4=-2
+B4=-3
+%% 2={...}
+A5=0
+B5=1
+A6=0
+B6=0
+%% 2<>{...}
+A7=1
+B7=0
+A8=1
+B8=1
+%% 2<{...}
+A9=0
+B9=0
+A10=1
+B10=1
+%% 2<={...}
+A11=0
+B11=1
+A12=1
+B12=1
+%% 2>{...}
+A13=1
+B13=0
+A14=0
+B14=0
+%% 2>={...}
+A15=1
+B15=1
+A16=0
+B16=0
+%check
+