interplane.Get Omega
Read in your language

omnet

aien-dev/omnet

Brought by drakestapleton

branch main Branches Tags History

omnet / om / cbor / test / vectors / rfc8949-appA.txt

91 lines · 3265 bytes Raw Blame History
1# RFC 8949 Appendix A, Table 6 "Examples of Encoded CBOR Data Items", every row in order.
2# Source: https://www.rfc-editor.org/rfc/rfc8949.txt, fetched 2026-10-25, sha256
3# f1164a5b31a39350ad46abe29b83575eb933ca6c45366989c118b6b1058a214a. RFC text Copyright (c) 2020 IETF Trust and the
4# persons identified as the document authors; the encoded examples are reproduced as test data under
5# the IETF Trust Legal Provisions (https://trustee.ietf.org/license-info). Notice: rfc8949.NOTICE
6# (the RFC's Copyright Notice section verbatim, then the TLP 5 section 4.c BSD License text for
7# Code Components).
8# Line: WF HEX DIAGNOSTIC. WF is the fxamacker/cbor v2.9.0 Wellformed result under tka's decoder
9# options (om/cbor error code, 0 = accepted), from `oracle judge`. Accepted rows must re-encode to HEX
10# unchanged (every accepted row is already in CTAP2 canonical form; floats keep their width).
110 00 0
120 01 1
130 0a 10
140 17 23
150 1818 24
160 1819 25
170 1864 100
180 1903e8 1000
190 1a000f4240 1000000
200 1b000000e8d4a51000 1000000000000
210 1bffffffffffffffff 18446744073709551615
226 c249010000000000000000 18446744073709551616
230 3bffffffffffffffff -18446744073709551616
246 c349010000000000000000 -18446744073709551617
250 20 -1
260 29 -10
270 3863 -100
280 3903e7 -1000
290 f90000 0.0
300 f98000 -0.0
310 f93c00 1.0
320 fb3ff199999999999a 1.1
330 f93e00 1.5
340 f97bff 65504.0
350 fa47c35000 100000.0
360 fa7f7fffff 3.4028234663852886e+38
370 fb7e37e43c8800759c 1.0e+300
380 f90001 5.960464477539063e-8
390 f90400 0.00006103515625
400 f9c400 -4.0
410 fbc010666666666666 -4.1
420 f97c00 Infinity
430 f97e00 NaN
440 f9fc00 -Infinity
450 fa7f800000 Infinity
460 fa7fc00000 NaN
470 faff800000 -Infinity
480 fb7ff0000000000000 Infinity
490 fb7ff8000000000000 NaN
500 fbfff0000000000000 -Infinity
510 f4 false
520 f5 true
530 f6 null
540 f7 undefined
550 f0 simple(16)
560 f8ff simple(255)
576 c074323031332d30332d32315432303a30343a30305a 0("2013-03-21T20:04:00Z")
586 c11a514b67b0 1(1363896240)
596 c1fb41d452d9ec200000 1(1363896240.5)
606 d74401020304 23(h'01020304')
616 d818456449455446 24(h'6449455446')
626 d82076687474703a2f2f7777772e6578616d706c652e636f6d 32("http://www.example.com")
630 40 h''
640 4401020304 h'01020304'
650 60 ""
660 6161 "a"
670 6449455446 "IETF"
680 62225c "\"\\"
690 62c3bc "\u00fc"
700 63e6b0b4 "\u6c34"
710 64f0908591 "\ud800\udd51"
720 80 []
730 83010203 [1, 2, 3]
740 8301820203820405 [1, [2, 3], [4, 5]]
750 98190102030405060708090a0b0c0d0e0f101112131415161718181819 [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]
760 a0 {}
770 a201020304 {1: 2, 3: 4}
780 a26161016162820203 {"a": 1, "b": [2, 3]}
790 826161a161626163 ["a", {"b": "c"}]
800 a56161614161626142616361436164614461656145 {"a": "A", "b": "B", "c": "C", "d": "D", "e": "E"}
814 5f42010243030405ff (_ h'0102', h'030405')
824 7f657374726561646d696e67ff (_ "strea", "ming")
834 9fff [_ ]
844 9f018202039f0405ffff [_ 1, [2, 3], [_ 4, 5]]
854 9f01820203820405ff [_ 1, [2, 3], [4, 5]]
864 83018202039f0405ff [1, [2, 3], [_ 4, 5]]
874 83019f0203ff820405 [1, [_ 2, 3], [4, 5]]
884 9f0102030405060708090a0b0c0d0e0f101112131415161718181819ff [_ 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]
894 bf61610161629f0203ffff {_ "a": 1, "b": [_ 2, 3]}
904 826161bf61626163ff ["a", {_ "b": "c"}]
914 bf6346756ef563416d7421ff {_ "Fun": true, "Amt": -2}