tests/spec/unit/regression/flat_set_lit.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | solvers: [gecode, chuffed] |
| 4 | options: |
| 5 | all_solutions: true |
| 6 | expected: !Result |
| 7 | solution: |
| 8 | - !Solution |
| 9 | x: !set {2} |
| 10 | ***/ |
| 11 | |
| 12 | % Regression test for GitHub bug #392 |
| 13 | % Previously {a} would not be correctly evaluated during flattening |
| 14 | |
| 15 | var set of 1..3: foo(var 1..3: a) = {a}; |
| 16 | var set of 1..3: x :: add_to_output = foo(2); |