tests/spec/unit/regression/test_bug72.mzn
raw| 1 | /*** |
| 2 | --- !Test |
| 3 | solvers: [gecode] |
| 4 | options: |
| 5 | all_solutions: true |
| 6 | expected: !Result |
| 7 | status: ALL_SOLUTIONS |
| 8 | solution: |
| 9 | - !Solution |
| 10 | x: !!set {1} |
| 11 | b: true |
| 12 | --- !Test |
| 13 | solvers: [chuffed] |
| 14 | expected: !Result |
| 15 | status: SATISFIED |
| 16 | solution: !Solution |
| 17 | x: !!set {1} |
| 18 | b: true |
| 19 | ***/ |
| 20 | |
| 21 | var set of 1..1: x; |
| 22 | constraint 1 in x; |
| 23 | |
| 24 | var bool: b; |
| 25 | constraint b = exists([true | s in x]); |
| 26 | |
| 27 | solve satisfy; |