test-cbor-goldens.json 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639
  1. [
  2. {
  3. "cbor": "AA==",
  4. "hex": "00",
  5. "roundtrip": true,
  6. "decoded": 0
  7. },
  8. {
  9. "cbor": "AQ==",
  10. "hex": "01",
  11. "roundtrip": true,
  12. "decoded": 1
  13. },
  14. {
  15. "cbor": "Cg==",
  16. "hex": "0a",
  17. "roundtrip": true,
  18. "decoded": 10
  19. },
  20. {
  21. "cbor": "Fw==",
  22. "hex": "17",
  23. "roundtrip": true,
  24. "decoded": 23
  25. },
  26. {
  27. "cbor": "GBg=",
  28. "hex": "1818",
  29. "roundtrip": true,
  30. "decoded": 24
  31. },
  32. {
  33. "cbor": "GBk=",
  34. "hex": "1819",
  35. "roundtrip": true,
  36. "decoded": 25
  37. },
  38. {
  39. "cbor": "GGQ=",
  40. "hex": "1864",
  41. "roundtrip": true,
  42. "decoded": 100
  43. },
  44. {
  45. "cbor": "GQPo",
  46. "hex": "1903e8",
  47. "roundtrip": true,
  48. "decoded": 1000
  49. },
  50. {
  51. "cbor": "GgAPQkA=",
  52. "hex": "1a000f4240",
  53. "roundtrip": true,
  54. "decoded": 1000000
  55. },
  56. {
  57. "cbor": "GwAAAOjUpRAA",
  58. "hex": "1b000000e8d4a51000",
  59. "roundtrip": true,
  60. "decoded": 1000000000000
  61. },
  62. {
  63. "cbor": "G///////////",
  64. "hex": "1bffffffffffffffff",
  65. "roundtrip": true,
  66. "decoded": 18446744073709551615
  67. },
  68. {
  69. "cbor": "wkkBAAAAAAAAAAA=",
  70. "hex": "c249010000000000000000",
  71. "roundtrip": true,
  72. "decoded": 18446744073709551616
  73. },
  74. {
  75. "cbor": "O///////////",
  76. "hex": "3bffffffffffffffff",
  77. "roundtrip": true,
  78. "decoded": -18446744073709551616,
  79. "skip": true
  80. },
  81. {
  82. "cbor": "w0kBAAAAAAAAAAA=",
  83. "hex": "c349010000000000000000",
  84. "roundtrip": true,
  85. "decoded": -18446744073709551617
  86. },
  87. {
  88. "cbor": "IA==",
  89. "hex": "20",
  90. "roundtrip": true,
  91. "decoded": -1
  92. },
  93. {
  94. "cbor": "KQ==",
  95. "hex": "29",
  96. "roundtrip": true,
  97. "decoded": -10
  98. },
  99. {
  100. "cbor": "OGM=",
  101. "hex": "3863",
  102. "roundtrip": true,
  103. "decoded": -100
  104. },
  105. {
  106. "cbor": "OQPn",
  107. "hex": "3903e7",
  108. "roundtrip": true,
  109. "decoded": -1000
  110. },
  111. {
  112. "cbor": "+QAA",
  113. "hex": "f90000",
  114. "roundtrip": true,
  115. "decoded": 0.0
  116. },
  117. {
  118. "cbor": "+YAA",
  119. "hex": "f98000",
  120. "roundtrip": true,
  121. "decoded": -0.0
  122. },
  123. {
  124. "cbor": "+TwA",
  125. "hex": "f93c00",
  126. "roundtrip": true,
  127. "decoded": 1.0
  128. },
  129. {
  130. "cbor": "+z/xmZmZmZma",
  131. "hex": "fb3ff199999999999a",
  132. "roundtrip": true,
  133. "decoded": 1.1
  134. },
  135. {
  136. "cbor": "+T4A",
  137. "hex": "f93e00",
  138. "roundtrip": true,
  139. "decoded": 1.5
  140. },
  141. {
  142. "cbor": "+Xv/",
  143. "hex": "f97bff",
  144. "roundtrip": true,
  145. "decoded": 65504.0
  146. },
  147. {
  148. "cbor": "+kfDUAA=",
  149. "hex": "fa47c35000",
  150. "roundtrip": true,
  151. "decoded": 100000.0
  152. },
  153. {
  154. "cbor": "+n9///8=",
  155. "hex": "fa7f7fffff",
  156. "roundtrip": true,
  157. "decoded": 3.4028234663852886e+38
  158. },
  159. {
  160. "cbor": "+3435DyIAHWc",
  161. "hex": "fb7e37e43c8800759c",
  162. "roundtrip": true,
  163. "decoded": 1.0e+300
  164. },
  165. {
  166. "cbor": "+QAB",
  167. "hex": "f90001",
  168. "roundtrip": true,
  169. "decoded": 5.960464477539063e-08
  170. },
  171. {
  172. "cbor": "+QQA",
  173. "hex": "f90400",
  174. "roundtrip": true,
  175. "decoded": 6.103515625e-05
  176. },
  177. {
  178. "cbor": "+cQA",
  179. "hex": "f9c400",
  180. "roundtrip": true,
  181. "decoded": -4.0
  182. },
  183. {
  184. "cbor": "+8AQZmZmZmZm",
  185. "hex": "fbc010666666666666",
  186. "roundtrip": true,
  187. "decoded": -4.1
  188. },
  189. {
  190. "cbor": "+XwA",
  191. "hex": "f97c00",
  192. "roundtrip": true,
  193. "diagnostic": "Infinity"
  194. },
  195. {
  196. "cbor": "+X4A",
  197. "hex": "f97e00",
  198. "roundtrip": true,
  199. "diagnostic": "NaN"
  200. },
  201. {
  202. "cbor": "+fwA",
  203. "hex": "f9fc00",
  204. "roundtrip": true,
  205. "diagnostic": "-Infinity"
  206. },
  207. {
  208. "cbor": "+n+AAAA=",
  209. "hex": "fa7f800000",
  210. "roundtrip": false,
  211. "diagnostic": "Infinity"
  212. },
  213. {
  214. "cbor": "+n/AAAA=",
  215. "hex": "fa7fc00000",
  216. "roundtrip": false,
  217. "diagnostic": "NaN"
  218. },
  219. {
  220. "cbor": "+v+AAAA=",
  221. "hex": "faff800000",
  222. "roundtrip": false,
  223. "diagnostic": "-Infinity"
  224. },
  225. {
  226. "cbor": "+3/wAAAAAAAA",
  227. "hex": "fb7ff0000000000000",
  228. "roundtrip": false,
  229. "diagnostic": "Infinity"
  230. },
  231. {
  232. "cbor": "+3/4AAAAAAAA",
  233. "hex": "fb7ff8000000000000",
  234. "roundtrip": false,
  235. "diagnostic": "NaN"
  236. },
  237. {
  238. "cbor": "+//wAAAAAAAA",
  239. "hex": "fbfff0000000000000",
  240. "roundtrip": false,
  241. "diagnostic": "-Infinity"
  242. },
  243. {
  244. "cbor": "9A==",
  245. "hex": "f4",
  246. "roundtrip": true,
  247. "decoded": false
  248. },
  249. {
  250. "cbor": "9Q==",
  251. "hex": "f5",
  252. "roundtrip": true,
  253. "decoded": true
  254. },
  255. {
  256. "cbor": "9g==",
  257. "hex": "f6",
  258. "roundtrip": true,
  259. "decoded": null
  260. },
  261. {
  262. "cbor": "9w==",
  263. "hex": "f7",
  264. "roundtrip": true,
  265. "diagnostic": "undefined"
  266. },
  267. {
  268. "cbor": "8A==",
  269. "hex": "f0",
  270. "roundtrip": true,
  271. "diagnostic": "simple(16)"
  272. },
  273. {
  274. "cbor": "+Bg=",
  275. "hex": "f818",
  276. "roundtrip": true,
  277. "diagnostic": "simple(24)"
  278. },
  279. {
  280. "cbor": "+P8=",
  281. "hex": "f8ff",
  282. "roundtrip": true,
  283. "diagnostic": "simple(255)"
  284. },
  285. {
  286. "cbor": "wHQyMDEzLTAzLTIxVDIwOjA0OjAwWg==",
  287. "hex": "c074323031332d30332d32315432303a30343a30305a",
  288. "roundtrip": true,
  289. "diagnostic": "0(\"2013-03-21T20:04:00Z\")"
  290. },
  291. {
  292. "cbor": "wRpRS2ew",
  293. "hex": "c11a514b67b0",
  294. "roundtrip": true,
  295. "diagnostic": "1(1363896240)"
  296. },
  297. {
  298. "cbor": "wftB1FLZ7CAAAA==",
  299. "hex": "c1fb41d452d9ec200000",
  300. "roundtrip": true,
  301. "diagnostic": "1(1363896240.5)"
  302. },
  303. {
  304. "cbor": "10QBAgME",
  305. "hex": "d74401020304",
  306. "roundtrip": true,
  307. "diagnostic": "23(h'01020304')"
  308. },
  309. {
  310. "cbor": "2BhFZElFVEY=",
  311. "hex": "d818456449455446",
  312. "roundtrip": true,
  313. "diagnostic": "24(h'6449455446')"
  314. },
  315. {
  316. "cbor": "2CB2aHR0cDovL3d3dy5leGFtcGxlLmNvbQ==",
  317. "hex": "d82076687474703a2f2f7777772e6578616d706c652e636f6d",
  318. "roundtrip": true,
  319. "diagnostic": "32(\"http://www.example.com\")"
  320. },
  321. {
  322. "cbor": "QA==",
  323. "hex": "40",
  324. "roundtrip": true,
  325. "diagnostic": "h''"
  326. },
  327. {
  328. "cbor": "RAECAwQ=",
  329. "hex": "4401020304",
  330. "roundtrip": true,
  331. "diagnostic": "h'01020304'"
  332. },
  333. {
  334. "cbor": "YA==",
  335. "hex": "60",
  336. "roundtrip": true,
  337. "decoded": ""
  338. },
  339. {
  340. "cbor": "YWE=",
  341. "hex": "6161",
  342. "roundtrip": true,
  343. "decoded": "a"
  344. },
  345. {
  346. "cbor": "ZElFVEY=",
  347. "hex": "6449455446",
  348. "roundtrip": true,
  349. "decoded": "IETF"
  350. },
  351. {
  352. "cbor": "YiJc",
  353. "hex": "62225c",
  354. "roundtrip": true,
  355. "decoded": "\"\\"
  356. },
  357. {
  358. "cbor": "YsO8",
  359. "hex": "62c3bc",
  360. "roundtrip": true,
  361. "decoded": "ü"
  362. },
  363. {
  364. "cbor": "Y+awtA==",
  365. "hex": "63e6b0b4",
  366. "roundtrip": true,
  367. "decoded": "水"
  368. },
  369. {
  370. "cbor": "ZPCQhZE=",
  371. "hex": "64f0908591",
  372. "roundtrip": true,
  373. "decoded": "𐅑"
  374. },
  375. {
  376. "cbor": "gA==",
  377. "hex": "80",
  378. "roundtrip": true,
  379. "decoded": [
  380. ]
  381. },
  382. {
  383. "cbor": "gwECAw==",
  384. "hex": "83010203",
  385. "roundtrip": true,
  386. "decoded": [
  387. 1,
  388. 2,
  389. 3
  390. ]
  391. },
  392. {
  393. "cbor": "gwGCAgOCBAU=",
  394. "hex": "8301820203820405",
  395. "roundtrip": true,
  396. "decoded": [
  397. 1,
  398. [
  399. 2,
  400. 3
  401. ],
  402. [
  403. 4,
  404. 5
  405. ]
  406. ]
  407. },
  408. {
  409. "cbor": "mBkBAgMEBQYHCAkKCwwNDg8QERITFBUWFxgYGBk=",
  410. "hex": "98190102030405060708090a0b0c0d0e0f101112131415161718181819",
  411. "roundtrip": true,
  412. "decoded": [
  413. 1,
  414. 2,
  415. 3,
  416. 4,
  417. 5,
  418. 6,
  419. 7,
  420. 8,
  421. 9,
  422. 10,
  423. 11,
  424. 12,
  425. 13,
  426. 14,
  427. 15,
  428. 16,
  429. 17,
  430. 18,
  431. 19,
  432. 20,
  433. 21,
  434. 22,
  435. 23,
  436. 24,
  437. 25
  438. ]
  439. },
  440. {
  441. "cbor": "oA==",
  442. "hex": "a0",
  443. "roundtrip": true,
  444. "decoded": {
  445. }
  446. },
  447. {
  448. "cbor": "ogECAwQ=",
  449. "hex": "a201020304",
  450. "roundtrip": true,
  451. "skip": true,
  452. "diagnostic": "{1: 2, 3: 4}"
  453. },
  454. {
  455. "cbor": "omFhAWFiggID",
  456. "hex": "a26161016162820203",
  457. "roundtrip": true,
  458. "decoded": {
  459. "a": 1,
  460. "b": [
  461. 2,
  462. 3
  463. ]
  464. }
  465. },
  466. {
  467. "cbor": "gmFhoWFiYWM=",
  468. "hex": "826161a161626163",
  469. "roundtrip": true,
  470. "decoded": [
  471. "a",
  472. {
  473. "b": "c"
  474. }
  475. ]
  476. },
  477. {
  478. "cbor": "pWFhYUFhYmFCYWNhQ2FkYURhZWFF",
  479. "hex": "a56161614161626142616361436164614461656145",
  480. "roundtrip": true,
  481. "decoded": {
  482. "a": "A",
  483. "b": "B",
  484. "c": "C",
  485. "d": "D",
  486. "e": "E"
  487. }
  488. },
  489. {
  490. "cbor": "X0IBAkMDBAX/",
  491. "hex": "5f42010243030405ff",
  492. "roundtrip": false,
  493. "skip": true,
  494. "diagnostic": "(_ h'0102', h'030405')"
  495. },
  496. {
  497. "cbor": "f2VzdHJlYWRtaW5n/w==",
  498. "hex": "7f657374726561646d696e67ff",
  499. "roundtrip": false,
  500. "decoded": "streaming"
  501. },
  502. {
  503. "cbor": "n/8=",
  504. "hex": "9fff",
  505. "roundtrip": false,
  506. "decoded": [
  507. ]
  508. },
  509. {
  510. "cbor": "nwGCAgOfBAX//w==",
  511. "hex": "9f018202039f0405ffff",
  512. "roundtrip": false,
  513. "decoded": [
  514. 1,
  515. [
  516. 2,
  517. 3
  518. ],
  519. [
  520. 4,
  521. 5
  522. ]
  523. ]
  524. },
  525. {
  526. "cbor": "nwGCAgOCBAX/",
  527. "hex": "9f01820203820405ff",
  528. "roundtrip": false,
  529. "decoded": [
  530. 1,
  531. [
  532. 2,
  533. 3
  534. ],
  535. [
  536. 4,
  537. 5
  538. ]
  539. ]
  540. },
  541. {
  542. "cbor": "gwGCAgOfBAX/",
  543. "hex": "83018202039f0405ff",
  544. "roundtrip": false,
  545. "decoded": [
  546. 1,
  547. [
  548. 2,
  549. 3
  550. ],
  551. [
  552. 4,
  553. 5
  554. ]
  555. ]
  556. },
  557. {
  558. "cbor": "gwGfAgP/ggQF",
  559. "hex": "83019f0203ff820405",
  560. "roundtrip": false,
  561. "decoded": [
  562. 1,
  563. [
  564. 2,
  565. 3
  566. ],
  567. [
  568. 4,
  569. 5
  570. ]
  571. ]
  572. },
  573. {
  574. "cbor": "nwECAwQFBgcICQoLDA0ODxAREhMUFRYXGBgYGf8=",
  575. "hex": "9f0102030405060708090a0b0c0d0e0f101112131415161718181819ff",
  576. "roundtrip": false,
  577. "decoded": [
  578. 1,
  579. 2,
  580. 3,
  581. 4,
  582. 5,
  583. 6,
  584. 7,
  585. 8,
  586. 9,
  587. 10,
  588. 11,
  589. 12,
  590. 13,
  591. 14,
  592. 15,
  593. 16,
  594. 17,
  595. 18,
  596. 19,
  597. 20,
  598. 21,
  599. 22,
  600. 23,
  601. 24,
  602. 25
  603. ]
  604. },
  605. {
  606. "cbor": "v2FhAWFinwID//8=",
  607. "hex": "bf61610161629f0203ffff",
  608. "roundtrip": false,
  609. "decoded": {
  610. "a": 1,
  611. "b": [
  612. 2,
  613. 3
  614. ]
  615. }
  616. },
  617. {
  618. "cbor": "gmFhv2FiYWP/",
  619. "hex": "826161bf61626163ff",
  620. "roundtrip": false,
  621. "decoded": [
  622. "a",
  623. {
  624. "b": "c"
  625. }
  626. ]
  627. },
  628. {
  629. "cbor": "v2NGdW71Y0FtdCH/",
  630. "hex": "bf6346756ef563416d7421ff",
  631. "roundtrip": false,
  632. "decoded": {
  633. "Fun": true,
  634. "Amt": -2
  635. }
  636. }
  637. ]