summaryrefslogtreecommitdiffstats
path: root/test/01-inline-array.txt
blob: 2da6f74cd2d53faf8117e26ce8b388976c13e6ab (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
%% Test for inline arrays
%mode init
{A1:C2}{={1,2,3;4,5,6}}
{A4:B6}{={1,2;3,4;5,6}}
{C8:D8}{={"A","B"}}
{B10:D11}{={-1,2,"red";-5.1,-4,"blue"}}
%calc
%mode result
A1=1
B1=2
C1=3
A2=4
B2=5
C2=6
A4=1
B4=2
A5=3
B5=4
A6=5
B6=6
C8="A"
D8="B"
B10=-1
C10=2
D10="red"
B11=-5.1
C11=-4
D11="blue"
%check