v2 / vlib / encoding / cbor / tests / cbor_wg / appA_mt5.edn
31 lines · 31 sloc · 779 bytes · 468855eef1db0ff73c62be2d1bf176ffa0e1478e
Raw
1{
2 "title": "mt5",
3 "description": "Maps, from RFC 8949 appendix A",
4 "tests": [
5 {
6 "description": "Empty Map",
7 "encoded": h'a0',
8 "decoded": {},
9 },
10 {
11 "description": "Map with integer keys",
12 "encoded": h'a201020304',
13 "decoded": {1: 2, 3: 4},
14 },
15 {
16 "description": "Array nested in Map with string keys",
17 "encoded": h'a26161016162820203',
18 "decoded": {"a": 1, "b": [2, 3]},
19 },
20 {
21 "description": "Map nested in array",
22 "encoded": h'826161a161626163',
23 "decoded": ["a", {"b": "c"}],
24 },
25 {
26 "description": "Map with more keys",
27 "encoded": h'a56161614161626142616361436164614461656145',
28 "decoded": {"a": "A", "b": "B", "c": "C", "d": "D", "e": "E"},
29 },
30 ],
31}
32