|
|
|
@ -191,6 +191,11 @@ var unpackTests = []unpackTest{ |
|
|
|
|
enc: "0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002", |
|
|
|
|
want: [][2]uint8{{1, 2}}, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
def: `[{"type": "uint8[2][]"}]`, |
|
|
|
|
enc: "000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002", |
|
|
|
|
want: [][2]uint8{{1, 2}, {1, 2}}, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
def: `[{"type": "uint16[]"}]`, |
|
|
|
|
enc: "0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002", |
|
|
|
|