tests/spec/unit/general/reverse_map_path.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | solvers: [gecode] |
| 4 | options: |
| 5 | all_solutions: true |
| 6 | keep-paths: true |
| 7 | expected: !Result |
| 8 | status: ALL_SOLUTIONS |
| 9 | solution: !SolutionSet |
| 10 | - !Solution |
| 11 | x: [null, null] |
| 12 | - !Solution |
| 13 | x: [1, null] |
| 14 | - !Solution |
| 15 | x: [null, 1] |
| 16 | - !Solution |
| 17 | x: [1, 1] |
| 18 | ***/ |
| 19 | |
| 20 | % Previously the mzn_reverse_map_var added at the end of flattening for each |
| 21 | % element would have the same path and would get incorrectly unified |
| 22 | array [1..2] of var opt 1..1: x; |