| 1 |
/*** |
| 2 |
!Test |
| 3 |
extra_files: |
| 4 |
- record_json_input.json |
| 5 |
solvers: [gecode] |
| 6 |
expected: !Result |
| 7 |
solution: !Solution |
| 8 |
singlet: [-3] |
| 9 |
duo: ["Albus", true] |
| 10 |
arr1d: [[0.2, true], [-23.1, false]] |
| 11 |
arr2d: [[[1, "one", true], [2, "two", true]], [[-1, "min one", false], [-2, "min two", false]]] |
| 12 |
empty_arr: [] |
| 13 |
mixed_arr: [[1, 2], [3, null], [5, null]] |
| 14 |
***/ |
| 15 |
|
| 16 |
|
| 17 |
record(int: x): singlet ::output; |
| 18 |
record(string: x, bool: y): duo ::output; |
| 19 |
array[_] of record(float: e, bool: b): arr1d ::output; |
| 20 |
array[_,_] of record(int: x1, string: x2, bool: x3): arr2d ::output; |
| 21 |
array[_] of record(bool: a, int: b, float: c, string: d): empty_arr :: output; |
| 22 |
array[_] of record(int: x, opt int: y): mixed_arr ::output; |