diff options
Diffstat (limited to 'testsuite/runnable/array_constructor.elna')
| -rw-r--r-- | testsuite/runnable/array_constructor.elna | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/runnable/array_constructor.elna b/testsuite/runnable/array_constructor.elna new file mode 100644 index 0000000..2ce3578 --- /dev/null +++ b/testsuite/runnable/array_constructor.elna @@ -0,0 +1,12 @@ +var + a: [3]Int := [3]Int{1, 2, 3} + b: [2]Int := [2]Int{4} + +begin + assert(a[1] = 1 & a[2] = 2 & a[3] = 3); + assert(b[1] = 4 & b[2] = 0); + + a := [3]Int{5, 6, 7}; + assert(a[1] = 5 & a[2] = 6 & a[3] = 7) +return 0 +end. |
