tests/spec/unit/regression/bug69_4.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | expected: |
| 4 | - !Result |
| 5 | solution: !Solution |
| 6 | y: [2, 1, 1] |
| 7 | - !Result |
| 8 | solution: !Solution |
| 9 | y: [10, 10, 10] |
| 10 | ***/ |
| 11 | |
| 12 | % DISABLED ON mzn_cd_fd |
| 13 | % A regression test for G12 bug #69. |
| 14 | % |
| 15 | array [1..3] of var int: y; |
| 16 | predicate p(array [int] of var 1..10: x) = (x[1] mod 2 = 0); |
| 17 | constraint p(y); |
| 18 | solve satisfy; |
| 19 | output ["y = ", show(y), ";\n"]; |