tests/spec/unit/regression/float_opt_crash.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | solvers: [gecode] |
| 4 | options: |
| 5 | all_solutions: true |
| 6 | expected: !Result |
| 7 | solution: !SolutionSet |
| 8 | - !Solution |
| 9 | x: 1.0 |
| 10 | - !Solution |
| 11 | x: 2.0 |
| 12 | - !Solution |
| 13 | x: null |
| 14 | ***/ |
| 15 | |
| 16 | % Regression test for crash due to no opt float_dom definition |
| 17 | |
| 18 | var opt {1.0, 2.0}: x :: add_to_output; |
| 19 | |
| 20 | solve satisfy; |