☰
Debian Codegraph
@
2.9.7+dfsg1-1
2.10.0+dfsg1-1
/
/
tests
/
spec
/
unit
/
general
/
test_array_as_generator.mzn
☽
☼
tests/spec/unit/general/test_array_as_generator.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
***/
6
7
array [1..4] of int : xs = [1,2,3,4];
8
constraint 0 <= sum(x in xs)(x-1);
9
solve satisfy;