summaryrefslogtreecommitdiffstats
path: root/test/01-inline-array-op-lhs.txt
blob: b3dfa225f96cb0b05ce1c9a19542779bbff4ef39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
%% Test for inline arrays
%mode init
{A1:B2}{={1,2;4,5}+2}
{A3:B4}{={1,2;4,5}-2}
{A5:B6}{={1,2;4,5}=2}
{A7:B8}{={1,2;4,5}<>2}
{A9:B10}{={1,2;4,5}<2}
{A11:B12}{={1,2;4,5}<=2}
{A13:B14}{={1,2;4,5}>2}
{A15:B16}{={1,2;4,5}>=2}
%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=1
B9=0
A10=0
B10=0
%% <=2
A11=1
B11=1
A12=0
B12=0
%% >2
A13=0
B13=0
A14=1
B14=1
%% >=2
A15=0
B15=1
A16=1
B16=1
%check