Debian Codegraph @

tests/spec/unit/json/coerce_indices.mzn

raw
1 /***
2 !Test
3 extra_files:
4 - coerce_indices.json
5 solvers: [gecode]
6 expected: !Result
7 solution: !Solution
8 offset1d: [-10,-9,-8]
9 offset2d: [[1, 2], [3, 4]]
10 coerce1d: [[[1, 2, 3], [4, 5, 6]]]
11 singleUndef: [1, 2, 3]
12 coerceCalc: [[1, 2], [3, 4]]
13 ndimEmpty: []
14 ***/
15
16
17 array[-10..-8] of int: offset1d ::add_to_output;
18 array[4..5, 0..1] of int: offset2d ::add_to_output;
19
20 array[1..1, 1..2, 1..3] of int: coerce1d ::add_to_output;
21 array[2..3, int] of int: coerceCalc ::add_to_output;
22
23 array[int] of int: singleUndef ::add_to_output;
24 array[int, 1..2] of int: ndimEmpty ::add_to_output;
25