v / vlib / encoding / cbor / tests / cbor_wg / appA_mt1.edn
31 lines · 31 sloc · 651 bytes · 468855eef1db0ff73c62be2d1bf176ffa0e1478e
Raw
1{
2 "title": "mt1",
3 "description": "Plain negative CBOR integers storable as major type 1 (mt1), from RFC 8949 appendix A",
4 "tests": [
5 {
6 "description": "mt1 minimum",
7 "encoded": h'3bffffffffffffffff',
8 "decoded": -18446744073709551616,
9 },
10 {
11 "description": "mt1 maximum",
12 "encoded": h'20',
13 "decoded": -1,
14 },
15 {
16 "description": "mt1 -10",
17 "encoded": h'29',
18 "decoded": -10,
19 }
20 {
21 "description": "mt1 -100",
22 "encoded": h'3863',
23 "decoded": -100,
24 }
25 {
26 "description": "mt1 -1000",
27 "encoded": h'3903e7',
28 "decoded": -1000,
29 }
30 ],
31}
32