tests/spec/unit/regression/var_bool_comp.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | check_against: [] |
| 4 | expected: |
| 5 | - !Result |
| 6 | solution: !Solution |
| 7 | x: [2, 1] |
| 8 | status: SATISFIED |
| 9 | extra_files: [] |
| 10 | markers: [] |
| 11 | name: '' |
| 12 | options: |
| 13 | all_solutions: false |
| 14 | solvers: |
| 15 | - gecode |
| 16 | type: solve |
| 17 | ***/ |
| 18 | |
| 19 | array[1..2] of var 1..3: x; |
| 20 | array[1..2] of var bool: b = [ x[i] = 1 | i in 1..2 ]; |
| 21 | array[1..2] of var bool: c = [ x[1] = 1, x[2] = 1 ]; |
| 22 | |
| 23 | constraint x[1] = 2; |