tests/spec/unit/regression/github_748.mzn
raw| 1 | /*** |
| 2 | --- !Test |
| 3 | expected: !Result |
| 4 | status: ALL_SOLUTIONS |
| 5 | solution: !SolutionSet |
| 6 | - !Solution |
| 7 | x: [true, false, false] |
| 8 | y: true |
| 9 | options: |
| 10 | all_solutions: true |
| 11 | solvers: [gecode] |
| 12 | --- !Test |
| 13 | expected: !Result |
| 14 | status: ALL_SOLUTIONS |
| 15 | solution: !SolutionSet |
| 16 | - !Solution |
| 17 | x: [true, false, false] |
| 18 | y: true |
| 19 | options: |
| 20 | all_solutions: true |
| 21 | -O0: true |
| 22 | solvers: [gecode] |
| 23 | ***/ |
| 24 | include "member.mzn"; |
| 25 | array [1..3] of var bool: x; |
| 26 | var bool: y; |
| 27 | |
| 28 | constraint member(x, y); |
| 29 | constraint x = array1d(1..3, [true, false, false]); |
| 30 | constraint y = true; |