File: 01-inline-array.txt

package info (click to toggle)
libixion 0.20.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,472 kB
  • sloc: cpp: 21,273; sh: 4,561; makefile: 463; python: 297
file content (29 lines) | stat: -rw-r--r-- 295 bytes parent folder | download | duplicates (3)
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