| 1 |
/*** |
| 2 |
!Test |
| 3 |
solvers: [gecode] |
| 4 |
expected: !Result |
| 5 |
solution: !Solution |
| 6 |
z1: [[[1, 3], [1, 3], [1, 3]], [[1, 3], [1, 3], [1, 3]], [[1, 3], [1, 3], [1, 3]]] |
| 7 |
z2: [[2, 2, 2], [2, 2, 2], [2, 2, 2]] |
| 8 |
z3: [[3, 3, 3], [3, 3, 3], [3, 3, 3]] |
| 9 |
z4: [[0, 1], [0, 1], [0, 1]] |
| 10 |
z5: [2, 2, 2] |
| 11 |
***/ |
| 12 |
|
| 13 |
enum E = {A, B, C}; |
| 14 |
array[E,E] of tuple(tuple(int,int),int): x = [ (e1,e2): ((1,3),2) | e1, e2 in E]; |
| 15 |
array[E] of record(tuple(int,int): a, record(int:c): b): y = [ e: (a: (0,1), b: (c: 2)) | e in E ]; |
| 16 |
array[E,E] of tuple(int,int): z1 ::output = x.1; |
| 17 |
array[E,E] of int: z2 ::output = x.2; |
| 18 |
any: z3::output = (x.1).2; |
| 19 |
any: z4::output = y.a; |
| 20 |
any: z5::output = y.b.c; |