tests/spec/unit/regression/opt_noncontiguous_domain.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | solvers: [gecode, chuffed] |
| 4 | options: |
| 5 | all_solutions: true |
| 6 | expected: !Result |
| 7 | solution: !SolutionSet |
| 8 | - !Solution |
| 9 | x: 1 |
| 10 | - !Solution |
| 11 | x: 3 |
| 12 | - !Solution |
| 13 | x: null |
| 14 | ***/ |
| 15 | |
| 16 | % Regression test for issue where the incorrect solution x = 2 would be produced |
| 17 | |
| 18 | var opt {1, 3}: x; |
| 19 | |
| 20 | solve satisfy; |