☰
Debian Codegraph
@
2.9.7+dfsg1-1
2.10.0+dfsg1-1
/
/
tests
/
spec
/
unit
/
regression
/
test_slice_1d_array.mzn
☽
☼
tests/spec/unit/regression/test_slice_1d_array.mzn
code
plain
raw
MPL-2.0
2014-2025 Monash University and NICTA
debian/copyright
1
/***
2
!Test
3
expected: !Result
4
status: SATISFIED
5
solution: !Solution
6
xs: [2, 3]
7
***/
8
9
array[int] of int: x = [1,2,3,4];
10
11
int: i = 2;
12
array[int] of int: xs :: add_to_output = x[i..i+1];