Debian Codegraph @

tests/spec/unit/optional/test_count_set.mzn

raw
1 /***
2 !Test
3 check_against: []
4 expected:
5 - !Result
6 solution: !Solution
7 i: 0
8 x: !Range 6..10
9 status: SATISFIED
10 extra_files: []
11 markers: []
12 name: ''
13 options:
14 all_solutions: false
15 solvers:
16 - gecode
17 type: solve
18 ***/
19
20 var set of 1..10: x;
21 var int: i ::output = count(j in x)(j <= 5);