v / vlib / encoding / cbor / tests / cbor_wg / appA_mt4.edn
26 lines · 26 sloc · 660 bytes · 468855eef1db0ff73c62be2d1bf176ffa0e1478e
Raw
1{
2 "title": "mt4",
3 "description": "Arrays, from RFC 8949 appendix A",
4 "tests": [
5 {
6 "description": "Empty Array",
7 "encoded": h'80',
8 "decoded": [],
9 },
10 {
11 "description": "Short Array",
12 "encoded": h'83010203',
13 "decoded": [1, 2, 3],
14 },
15 {
16 "description": "Nested Arrays",
17 "encoded": h'8301820203820405',
18 "decoded": [1, [2, 3], [4, 5]],
19 },
20 {
21 "description": "Longer array",
22 "encoded": h'98190102030405060708090a0b0c0d0e0f101112131415161718181819',
23 "decoded": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25],
24 },
25 ]
26}
27