| 1 | [ |
| 2 | { |
| 3 | "description": "atomic - uint/0/max", |
| 4 | "input": "17", |
| 5 | "expect": { |
| 6 | "uint": 23 |
| 7 | } |
| 8 | }, |
| 9 | { |
| 10 | "description": "atomic - uint/2/min", |
| 11 | "input": "190000", |
| 12 | "expect": { |
| 13 | "uint": 0 |
| 14 | } |
| 15 | }, |
| 16 | { |
| 17 | "description": "atomic - uint/8/min", |
| 18 | "input": "1b0000000000000000", |
| 19 | "expect": { |
| 20 | "uint": 0 |
| 21 | } |
| 22 | }, |
| 23 | { |
| 24 | "description": "atomic - negint/1/min", |
| 25 | "input": "3800", |
| 26 | "expect": { |
| 27 | "negint": -1 |
| 28 | } |
| 29 | }, |
| 30 | { |
| 31 | "description": "atomic - negint/2/min", |
| 32 | "input": "390000", |
| 33 | "expect": { |
| 34 | "negint": -1 |
| 35 | } |
| 36 | }, |
| 37 | { |
| 38 | "description": "atomic - false", |
| 39 | "input": "f4", |
| 40 | "expect": { |
| 41 | "bool": false |
| 42 | } |
| 43 | }, |
| 44 | { |
| 45 | "description": "atomic - uint/1/min", |
| 46 | "input": "1800", |
| 47 | "expect": { |
| 48 | "uint": 0 |
| 49 | } |
| 50 | }, |
| 51 | { |
| 52 | "description": "atomic - negint/8/min", |
| 53 | "input": "3b0000000000000000", |
| 54 | "expect": { |
| 55 | "negint": -1 |
| 56 | } |
| 57 | }, |
| 58 | { |
| 59 | "description": "atomic - float64/+Inf", |
| 60 | "input": "fb7ff0000000000000", |
| 61 | "expect": { |
| 62 | "float64": 9218868437227405312 |
| 63 | } |
| 64 | }, |
| 65 | { |
| 66 | "description": "atomic - uint/4/min", |
| 67 | "input": "1a00000000", |
| 68 | "expect": { |
| 69 | "uint": 0 |
| 70 | } |
| 71 | }, |
| 72 | { |
| 73 | "description": "atomic - null", |
| 74 | "input": "f6", |
| 75 | "expect": { |
| 76 | "null": {} |
| 77 | } |
| 78 | }, |
| 79 | { |
| 80 | "description": "atomic - negint/2/max", |
| 81 | "input": "39ffff", |
| 82 | "expect": { |
| 83 | "negint": -65536 |
| 84 | } |
| 85 | }, |
| 86 | { |
| 87 | "description": "atomic - negint/8/max", |
| 88 | "input": "3bfffffffffffffffe", |
| 89 | "expect": { |
| 90 | "negint": -18446744073709551615 |
| 91 | } |
| 92 | }, |
| 93 | { |
| 94 | "description": "atomic - float32/1.625", |
| 95 | "input": "fa3fd00000", |
| 96 | "expect": { |
| 97 | "float32": 1070596096 |
| 98 | } |
| 99 | }, |
| 100 | { |
| 101 | "description": "atomic - uint/0/min", |
| 102 | "input": "00", |
| 103 | "expect": { |
| 104 | "uint": 0 |
| 105 | } |
| 106 | }, |
| 107 | { |
| 108 | "description": "atomic - uint/1/max", |
| 109 | "input": "18ff", |
| 110 | "expect": { |
| 111 | "uint": 255 |
| 112 | } |
| 113 | }, |
| 114 | { |
| 115 | "description": "atomic - uint/8/max", |
| 116 | "input": "1bffffffffffffffff", |
| 117 | "expect": { |
| 118 | "uint": 18446744073709551615 |
| 119 | } |
| 120 | }, |
| 121 | { |
| 122 | "description": "atomic - negint/1/max", |
| 123 | "input": "38ff", |
| 124 | "expect": { |
| 125 | "negint": -256 |
| 126 | } |
| 127 | }, |
| 128 | { |
| 129 | "description": "atomic - negint/4/min", |
| 130 | "input": "3a00000000", |
| 131 | "expect": { |
| 132 | "negint": -1 |
| 133 | } |
| 134 | }, |
| 135 | { |
| 136 | "description": "atomic - float64/1.625", |
| 137 | "input": "fb3ffa000000000000", |
| 138 | "expect": { |
| 139 | "float64": 4609997168567123968 |
| 140 | } |
| 141 | }, |
| 142 | { |
| 143 | "description": "atomic - uint/2/max", |
| 144 | "input": "19ffff", |
| 145 | "expect": { |
| 146 | "uint": 65535 |
| 147 | } |
| 148 | }, |
| 149 | { |
| 150 | "description": "atomic - negint/0/max", |
| 151 | "input": "37", |
| 152 | "expect": { |
| 153 | "negint": -24 |
| 154 | } |
| 155 | }, |
| 156 | { |
| 157 | "description": "atomic - negint/4/max", |
| 158 | "input": "3affffffff", |
| 159 | "expect": { |
| 160 | "negint": -4294967296 |
| 161 | } |
| 162 | }, |
| 163 | { |
| 164 | "description": "atomic - uint/4/max", |
| 165 | "input": "1affffffff", |
| 166 | "expect": { |
| 167 | "uint": 4294967295 |
| 168 | } |
| 169 | }, |
| 170 | { |
| 171 | "description": "atomic - negint/0/min", |
| 172 | "input": "20", |
| 173 | "expect": { |
| 174 | "negint": -1 |
| 175 | } |
| 176 | }, |
| 177 | { |
| 178 | "description": "atomic - true", |
| 179 | "input": "f5", |
| 180 | "expect": { |
| 181 | "bool": true |
| 182 | } |
| 183 | }, |
| 184 | { |
| 185 | "description": "atomic - float32/+Inf", |
| 186 | "input": "fa7f800000", |
| 187 | "expect": { |
| 188 | "float32": 2139095040 |
| 189 | } |
| 190 | }, |
| 191 | { |
| 192 | "description": "definite slice - len = 0", |
| 193 | "input": "40", |
| 194 | "expect": { |
| 195 | "bytestring": [] |
| 196 | } |
| 197 | }, |
| 198 | { |
| 199 | "description": "definite slice - len \u003e 0", |
| 200 | "input": "43666f6f", |
| 201 | "expect": { |
| 202 | "bytestring": [ |
| 203 | 102, |
| 204 | 111, |
| 205 | 111 |
| 206 | ] |
| 207 | } |
| 208 | }, |
| 209 | { |
| 210 | "description": "definite string - len = 0", |
| 211 | "input": "60", |
| 212 | "expect": { |
| 213 | "string": "" |
| 214 | } |
| 215 | }, |
| 216 | { |
| 217 | "description": "definite string - len \u003e 0", |
| 218 | "input": "63666f6f", |
| 219 | "expect": { |
| 220 | "string": "foo" |
| 221 | } |
| 222 | }, |
| 223 | { |
| 224 | "description": "indefinite slice - len = 0", |
| 225 | "input": "5fff", |
| 226 | "expect": { |
| 227 | "bytestring": [] |
| 228 | } |
| 229 | }, |
| 230 | { |
| 231 | "description": "indefinite slice - len = 0, explicit", |
| 232 | "input": "5f40ff", |
| 233 | "expect": { |
| 234 | "bytestring": [] |
| 235 | } |
| 236 | }, |
| 237 | { |
| 238 | "description": "indefinite slice - len = 0, len \u003e 0", |
| 239 | "input": "5f4043666f6fff", |
| 240 | "expect": { |
| 241 | "bytestring": [ |
| 242 | 102, |
| 243 | 111, |
| 244 | 111 |
| 245 | ] |
| 246 | } |
| 247 | }, |
| 248 | { |
| 249 | "description": "indefinite slice - len \u003e 0, len = 0", |
| 250 | "input": "5f43666f6f40ff", |
| 251 | "expect": { |
| 252 | "bytestring": [ |
| 253 | 102, |
| 254 | 111, |
| 255 | 111 |
| 256 | ] |
| 257 | } |
| 258 | }, |
| 259 | { |
| 260 | "description": "indefinite slice - len \u003e 0, len \u003e 0", |
| 261 | "input": "5f43666f6f43666f6fff", |
| 262 | "expect": { |
| 263 | "bytestring": [ |
| 264 | 102, |
| 265 | 111, |
| 266 | 111, |
| 267 | 102, |
| 268 | 111, |
| 269 | 111 |
| 270 | ] |
| 271 | } |
| 272 | }, |
| 273 | { |
| 274 | "description": "indefinite string - len = 0", |
| 275 | "input": "7fff", |
| 276 | "expect": { |
| 277 | "string": "" |
| 278 | } |
| 279 | }, |
| 280 | { |
| 281 | "description": "indefinite string - len = 0, explicit", |
| 282 | "input": "7f60ff", |
| 283 | "expect": { |
| 284 | "string": "" |
| 285 | } |
| 286 | }, |
| 287 | { |
| 288 | "description": "indefinite string - len = 0, len \u003e 0", |
| 289 | "input": "7f6063666f6fff", |
| 290 | "expect": { |
| 291 | "string": "foo" |
| 292 | } |
| 293 | }, |
| 294 | { |
| 295 | "description": "indefinite string - len \u003e 0, len = 0", |
| 296 | "input": "7f63666f6f60ff", |
| 297 | "expect": { |
| 298 | "string": "foo" |
| 299 | } |
| 300 | }, |
| 301 | { |
| 302 | "description": "indefinite string - len \u003e 0, len \u003e 0", |
| 303 | "input": "7f63666f6f63666f6fff", |
| 304 | "expect": { |
| 305 | "string": "foofoo" |
| 306 | } |
| 307 | }, |
| 308 | { |
| 309 | "description": "list - [float64]", |
| 310 | "input": "81fb7ff0000000000000", |
| 311 | "expect": { |
| 312 | "list": [ |
| 313 | { |
| 314 | "float64": 9218868437227405312 |
| 315 | } |
| 316 | ] |
| 317 | } |
| 318 | }, |
| 319 | { |
| 320 | "description": "list - [_ negint/4/min]", |
| 321 | "input": "9f3a00000000ff", |
| 322 | "expect": { |
| 323 | "list": [ |
| 324 | { |
| 325 | "negint": -1 |
| 326 | } |
| 327 | ] |
| 328 | } |
| 329 | }, |
| 330 | { |
| 331 | "description": "list - [uint/1/min]", |
| 332 | "input": "811800", |
| 333 | "expect": { |
| 334 | "list": [ |
| 335 | { |
| 336 | "uint": 0 |
| 337 | } |
| 338 | ] |
| 339 | } |
| 340 | }, |
| 341 | { |
| 342 | "description": "list - [_ uint/4/min]", |
| 343 | "input": "9f1a00000000ff", |
| 344 | "expect": { |
| 345 | "list": [ |
| 346 | { |
| 347 | "uint": 0 |
| 348 | } |
| 349 | ] |
| 350 | } |
| 351 | }, |
| 352 | { |
| 353 | "description": "list - [uint/0/max]", |
| 354 | "input": "8117", |
| 355 | "expect": { |
| 356 | "list": [ |
| 357 | { |
| 358 | "uint": 23 |
| 359 | } |
| 360 | ] |
| 361 | } |
| 362 | }, |
| 363 | { |
| 364 | "description": "list - [uint/1/max]", |
| 365 | "input": "8118ff", |
| 366 | "expect": { |
| 367 | "list": [ |
| 368 | { |
| 369 | "uint": 255 |
| 370 | } |
| 371 | ] |
| 372 | } |
| 373 | }, |
| 374 | { |
| 375 | "description": "list - [negint/2/min]", |
| 376 | "input": "81390000", |
| 377 | "expect": { |
| 378 | "list": [ |
| 379 | { |
| 380 | "negint": -1 |
| 381 | } |
| 382 | ] |
| 383 | } |
| 384 | }, |
| 385 | { |
| 386 | "description": "list - [negint/8/min]", |
| 387 | "input": "813b0000000000000000", |
| 388 | "expect": { |
| 389 | "list": [ |
| 390 | { |
| 391 | "negint": -1 |
| 392 | } |
| 393 | ] |
| 394 | } |
| 395 | }, |
| 396 | { |
| 397 | "description": "list - [_ uint/2/min]", |
| 398 | "input": "9f190000ff", |
| 399 | "expect": { |
| 400 | "list": [ |
| 401 | { |
| 402 | "uint": 0 |
| 403 | } |
| 404 | ] |
| 405 | } |
| 406 | }, |
| 407 | { |
| 408 | "description": "list - [uint/0/min]", |
| 409 | "input": "8100", |
| 410 | "expect": { |
| 411 | "list": [ |
| 412 | { |
| 413 | "uint": 0 |
| 414 | } |
| 415 | ] |
| 416 | } |
| 417 | }, |
| 418 | { |
| 419 | "description": "list - [negint/0/min]", |
| 420 | "input": "8120", |
| 421 | "expect": { |
| 422 | "list": [ |
| 423 | { |
| 424 | "negint": -1 |
| 425 | } |
| 426 | ] |
| 427 | } |
| 428 | }, |
| 429 | { |
| 430 | "description": "list - [negint/0/max]", |
| 431 | "input": "8137", |
| 432 | "expect": { |
| 433 | "list": [ |
| 434 | { |
| 435 | "negint": -24 |
| 436 | } |
| 437 | ] |
| 438 | } |
| 439 | }, |
| 440 | { |
| 441 | "description": "list - [negint/1/min]", |
| 442 | "input": "813800", |
| 443 | "expect": { |
| 444 | "list": [ |
| 445 | { |
| 446 | "negint": -1 |
| 447 | } |
| 448 | ] |
| 449 | } |
| 450 | }, |
| 451 | { |
| 452 | "description": "list - [negint/1/max]", |
| 453 | "input": "8138ff", |
| 454 | "expect": { |
| 455 | "list": [ |
| 456 | { |
| 457 | "negint": -256 |
| 458 | } |
| 459 | ] |
| 460 | } |
| 461 | }, |
| 462 | { |
| 463 | "description": "list - [negint/4/max]", |
| 464 | "input": "813affffffff", |
| 465 | "expect": { |
| 466 | "list": [ |
| 467 | { |
| 468 | "negint": -4294967296 |
| 469 | } |
| 470 | ] |
| 471 | } |
| 472 | }, |
| 473 | { |
| 474 | "description": "list - [_ uint/4/max]", |
| 475 | "input": "9f1affffffffff", |
| 476 | "expect": { |
| 477 | "list": [ |
| 478 | { |
| 479 | "uint": 4294967295 |
| 480 | } |
| 481 | ] |
| 482 | } |
| 483 | }, |
| 484 | { |
| 485 | "description": "list - [_ negint/0/max]", |
| 486 | "input": "9f37ff", |
| 487 | "expect": { |
| 488 | "list": [ |
| 489 | { |
| 490 | "negint": -24 |
| 491 | } |
| 492 | ] |
| 493 | } |
| 494 | }, |
| 495 | { |
| 496 | "description": "list - [uint/2/min]", |
| 497 | "input": "81190000", |
| 498 | "expect": { |
| 499 | "list": [ |
| 500 | { |
| 501 | "uint": 0 |
| 502 | } |
| 503 | ] |
| 504 | } |
| 505 | }, |
| 506 | { |
| 507 | "description": "list - [_ false]", |
| 508 | "input": "9ff4ff", |
| 509 | "expect": { |
| 510 | "list": [ |
| 511 | { |
| 512 | "bool": false |
| 513 | } |
| 514 | ] |
| 515 | } |
| 516 | }, |
| 517 | { |
| 518 | "description": "list - [_ float32]", |
| 519 | "input": "9ffa7f800000ff", |
| 520 | "expect": { |
| 521 | "list": [ |
| 522 | { |
| 523 | "float32": 2139095040 |
| 524 | } |
| 525 | ] |
| 526 | } |
| 527 | }, |
| 528 | { |
| 529 | "description": "list - [_ negint/1/max]", |
| 530 | "input": "9f38ffff", |
| 531 | "expect": { |
| 532 | "list": [ |
| 533 | { |
| 534 | "negint": -256 |
| 535 | } |
| 536 | ] |
| 537 | } |
| 538 | }, |
| 539 | { |
| 540 | "description": "list - [uint/8/max]", |
| 541 | "input": "811bffffffffffffffff", |
| 542 | "expect": { |
| 543 | "list": [ |
| 544 | { |
| 545 | "uint": 18446744073709551615 |
| 546 | } |
| 547 | ] |
| 548 | } |
| 549 | }, |
| 550 | { |
| 551 | "description": "list - [negint/4/min]", |
| 552 | "input": "813a00000000", |
| 553 | "expect": { |
| 554 | "list": [ |
| 555 | { |
| 556 | "negint": -1 |
| 557 | } |
| 558 | ] |
| 559 | } |
| 560 | }, |
| 561 | { |
| 562 | "description": "list - [negint/8/max]", |
| 563 | "input": "813bfffffffffffffffe", |
| 564 | "expect": { |
| 565 | "list": [ |
| 566 | { |
| 567 | "negint": -18446744073709551615 |
| 568 | } |
| 569 | ] |
| 570 | } |
| 571 | }, |
| 572 | { |
| 573 | "description": "list - [_ negint/2/min]", |
| 574 | "input": "9f390000ff", |
| 575 | "expect": { |
| 576 | "list": [ |
| 577 | { |
| 578 | "negint": -1 |
| 579 | } |
| 580 | ] |
| 581 | } |
| 582 | }, |
| 583 | { |
| 584 | "description": "list - [_ negint/4/max]", |
| 585 | "input": "9f3affffffffff", |
| 586 | "expect": { |
| 587 | "list": [ |
| 588 | { |
| 589 | "negint": -4294967296 |
| 590 | } |
| 591 | ] |
| 592 | } |
| 593 | }, |
| 594 | { |
| 595 | "description": "list - [_ true]", |
| 596 | "input": "9ff5ff", |
| 597 | "expect": { |
| 598 | "list": [ |
| 599 | { |
| 600 | "bool": true |
| 601 | } |
| 602 | ] |
| 603 | } |
| 604 | }, |
| 605 | { |
| 606 | "description": "list - [_ null]", |
| 607 | "input": "9ff6ff", |
| 608 | "expect": { |
| 609 | "list": [ |
| 610 | { |
| 611 | "null": {} |
| 612 | } |
| 613 | ] |
| 614 | } |
| 615 | }, |
| 616 | { |
| 617 | "description": "list - [uint/8/min]", |
| 618 | "input": "811b0000000000000000", |
| 619 | "expect": { |
| 620 | "list": [ |
| 621 | { |
| 622 | "uint": 0 |
| 623 | } |
| 624 | ] |
| 625 | } |
| 626 | }, |
| 627 | { |
| 628 | "description": "list - [null]", |
| 629 | "input": "81f6", |
| 630 | "expect": { |
| 631 | "list": [ |
| 632 | { |
| 633 | "null": {} |
| 634 | } |
| 635 | ] |
| 636 | } |
| 637 | }, |
| 638 | { |
| 639 | "description": "list - [_ uint/1/min]", |
| 640 | "input": "9f1800ff", |
| 641 | "expect": { |
| 642 | "list": [ |
| 643 | { |
| 644 | "uint": 0 |
| 645 | } |
| 646 | ] |
| 647 | } |
| 648 | }, |
| 649 | { |
| 650 | "description": "list - [_ uint/1/max]", |
| 651 | "input": "9f18ffff", |
| 652 | "expect": { |
| 653 | "list": [ |
| 654 | { |
| 655 | "uint": 255 |
| 656 | } |
| 657 | ] |
| 658 | } |
| 659 | }, |
| 660 | { |
| 661 | "description": "list - [_ uint/2/max]", |
| 662 | "input": "9f19ffffff", |
| 663 | "expect": { |
| 664 | "list": [ |
| 665 | { |
| 666 | "uint": 65535 |
| 667 | } |
| 668 | ] |
| 669 | } |
| 670 | }, |
| 671 | { |
| 672 | "description": "list - [_ uint/8/min]", |
| 673 | "input": "9f1b0000000000000000ff", |
| 674 | "expect": { |
| 675 | "list": [ |
| 676 | { |
| 677 | "uint": 0 |
| 678 | } |
| 679 | ] |
| 680 | } |
| 681 | }, |
| 682 | { |
| 683 | "description": "list - [_ negint/8/min]", |
| 684 | "input": "9f3b0000000000000000ff", |
| 685 | "expect": { |
| 686 | "list": [ |
| 687 | { |
| 688 | "negint": -1 |
| 689 | } |
| 690 | ] |
| 691 | } |
| 692 | }, |
| 693 | { |
| 694 | "description": "list - [_ float64]", |
| 695 | "input": "9ffb7ff0000000000000ff", |
| 696 | "expect": { |
| 697 | "list": [ |
| 698 | { |
| 699 | "float64": 9218868437227405312 |
| 700 | } |
| 701 | ] |
| 702 | } |
| 703 | }, |
| 704 | { |
| 705 | "description": "list - [uint/4/min]", |
| 706 | "input": "811a00000000", |
| 707 | "expect": { |
| 708 | "list": [ |
| 709 | { |
| 710 | "uint": 0 |
| 711 | } |
| 712 | ] |
| 713 | } |
| 714 | }, |
| 715 | { |
| 716 | "description": "list - [true]", |
| 717 | "input": "81f5", |
| 718 | "expect": { |
| 719 | "list": [ |
| 720 | { |
| 721 | "bool": true |
| 722 | } |
| 723 | ] |
| 724 | } |
| 725 | }, |
| 726 | { |
| 727 | "description": "list - [float32]", |
| 728 | "input": "81fa7f800000", |
| 729 | "expect": { |
| 730 | "list": [ |
| 731 | { |
| 732 | "float32": 2139095040 |
| 733 | } |
| 734 | ] |
| 735 | } |
| 736 | }, |
| 737 | { |
| 738 | "description": "list - [_ uint/0/min]", |
| 739 | "input": "9f00ff", |
| 740 | "expect": { |
| 741 | "list": [ |
| 742 | { |
| 743 | "uint": 0 |
| 744 | } |
| 745 | ] |
| 746 | } |
| 747 | }, |
| 748 | { |
| 749 | "description": "list - [_ uint/0/max]", |
| 750 | "input": "9f17ff", |
| 751 | "expect": { |
| 752 | "list": [ |
| 753 | { |
| 754 | "uint": 23 |
| 755 | } |
| 756 | ] |
| 757 | } |
| 758 | }, |
| 759 | { |
| 760 | "description": "list - [_ uint/8/max]", |
| 761 | "input": "9f1bffffffffffffffffff", |
| 762 | "expect": { |
| 763 | "list": [ |
| 764 | { |
| 765 | "uint": 18446744073709551615 |
| 766 | } |
| 767 | ] |
| 768 | } |
| 769 | }, |
| 770 | { |
| 771 | "description": "list - [_ negint/1/min]", |
| 772 | "input": "9f3800ff", |
| 773 | "expect": { |
| 774 | "list": [ |
| 775 | { |
| 776 | "negint": -1 |
| 777 | } |
| 778 | ] |
| 779 | } |
| 780 | }, |
| 781 | { |
| 782 | "description": "list - [_ negint/2/max]", |
| 783 | "input": "9f39ffffff", |
| 784 | "expect": { |
| 785 | "list": [ |
| 786 | { |
| 787 | "negint": -65536 |
| 788 | } |
| 789 | ] |
| 790 | } |
| 791 | }, |
| 792 | { |
| 793 | "description": "list - [uint/2/max]", |
| 794 | "input": "8119ffff", |
| 795 | "expect": { |
| 796 | "list": [ |
| 797 | { |
| 798 | "uint": 65535 |
| 799 | } |
| 800 | ] |
| 801 | } |
| 802 | }, |
| 803 | { |
| 804 | "description": "list - [negint/2/max]", |
| 805 | "input": "8139ffff", |
| 806 | "expect": { |
| 807 | "list": [ |
| 808 | { |
| 809 | "negint": -65536 |
| 810 | } |
| 811 | ] |
| 812 | } |
| 813 | }, |
| 814 | { |
| 815 | "description": "list - [false]", |
| 816 | "input": "81f4", |
| 817 | "expect": { |
| 818 | "list": [ |
| 819 | { |
| 820 | "bool": false |
| 821 | } |
| 822 | ] |
| 823 | } |
| 824 | }, |
| 825 | { |
| 826 | "description": "list - [_ negint/0/min]", |
| 827 | "input": "9f20ff", |
| 828 | "expect": { |
| 829 | "list": [ |
| 830 | { |
| 831 | "negint": -1 |
| 832 | } |
| 833 | ] |
| 834 | } |
| 835 | }, |
| 836 | { |
| 837 | "description": "list - [_ negint/8/max]", |
| 838 | "input": "9f3bfffffffffffffffeff", |
| 839 | "expect": { |
| 840 | "list": [ |
| 841 | { |
| 842 | "negint": -18446744073709551615 |
| 843 | } |
| 844 | ] |
| 845 | } |
| 846 | }, |
| 847 | { |
| 848 | "description": "list - [uint/4/max]", |
| 849 | "input": "811affffffff", |
| 850 | "expect": { |
| 851 | "list": [ |
| 852 | { |
| 853 | "uint": 4294967295 |
| 854 | } |
| 855 | ] |
| 856 | } |
| 857 | }, |
| 858 | { |
| 859 | "description": "map - {uint/0/min}", |
| 860 | "input": "a163666f6f00", |
| 861 | "expect": { |
| 862 | "map": { |
| 863 | "foo": { |
| 864 | "uint": 0 |
| 865 | } |
| 866 | } |
| 867 | } |
| 868 | }, |
| 869 | { |
| 870 | "description": "map - {uint/4/max}", |
| 871 | "input": "a163666f6f1affffffff", |
| 872 | "expect": { |
| 873 | "map": { |
| 874 | "foo": { |
| 875 | "uint": 4294967295 |
| 876 | } |
| 877 | } |
| 878 | } |
| 879 | }, |
| 880 | { |
| 881 | "description": "map - {negint/0/min}", |
| 882 | "input": "a163666f6f20", |
| 883 | "expect": { |
| 884 | "map": { |
| 885 | "foo": { |
| 886 | "negint": -1 |
| 887 | } |
| 888 | } |
| 889 | } |
| 890 | }, |
| 891 | { |
| 892 | "description": "map - {_ float32}", |
| 893 | "input": "bf63666f6ffa7f800000ff", |
| 894 | "expect": { |
| 895 | "map": { |
| 896 | "foo": { |
| 897 | "float32": 2139095040 |
| 898 | } |
| 899 | } |
| 900 | } |
| 901 | }, |
| 902 | { |
| 903 | "description": "map - {false}", |
| 904 | "input": "a163666f6ff4", |
| 905 | "expect": { |
| 906 | "map": { |
| 907 | "foo": { |
| 908 | "bool": false |
| 909 | } |
| 910 | } |
| 911 | } |
| 912 | }, |
| 913 | { |
| 914 | "description": "map - {float32}", |
| 915 | "input": "a163666f6ffa7f800000", |
| 916 | "expect": { |
| 917 | "map": { |
| 918 | "foo": { |
| 919 | "float32": 2139095040 |
| 920 | } |
| 921 | } |
| 922 | } |
| 923 | }, |
| 924 | { |
| 925 | "description": "map - {_ uint/0/max}", |
| 926 | "input": "bf63666f6f17ff", |
| 927 | "expect": { |
| 928 | "map": { |
| 929 | "foo": { |
| 930 | "uint": 23 |
| 931 | } |
| 932 | } |
| 933 | } |
| 934 | }, |
| 935 | { |
| 936 | "description": "map - {_ negint/2/min}", |
| 937 | "input": "bf63666f6f390000ff", |
| 938 | "expect": { |
| 939 | "map": { |
| 940 | "foo": { |
| 941 | "negint": -1 |
| 942 | } |
| 943 | } |
| 944 | } |
| 945 | }, |
| 946 | { |
| 947 | "description": "map - {_ false}", |
| 948 | "input": "bf63666f6ff4ff", |
| 949 | "expect": { |
| 950 | "map": { |
| 951 | "foo": { |
| 952 | "bool": false |
| 953 | } |
| 954 | } |
| 955 | } |
| 956 | }, |
| 957 | { |
| 958 | "description": "map - {uint/8/min}", |
| 959 | "input": "a163666f6f1b0000000000000000", |
| 960 | "expect": { |
| 961 | "map": { |
| 962 | "foo": { |
| 963 | "uint": 0 |
| 964 | } |
| 965 | } |
| 966 | } |
| 967 | }, |
| 968 | { |
| 969 | "description": "map - {_ negint/0/max}", |
| 970 | "input": "bf63666f6f37ff", |
| 971 | "expect": { |
| 972 | "map": { |
| 973 | "foo": { |
| 974 | "negint": -24 |
| 975 | } |
| 976 | } |
| 977 | } |
| 978 | }, |
| 979 | { |
| 980 | "description": "map - {_ null}", |
| 981 | "input": "bf63666f6ff6ff", |
| 982 | "expect": { |
| 983 | "map": { |
| 984 | "foo": { |
| 985 | "null": {} |
| 986 | } |
| 987 | } |
| 988 | } |
| 989 | }, |
| 990 | { |
| 991 | "description": "map - {uint/1/min}", |
| 992 | "input": "a163666f6f1800", |
| 993 | "expect": { |
| 994 | "map": { |
| 995 | "foo": { |
| 996 | "uint": 0 |
| 997 | } |
| 998 | } |
| 999 | } |
| 1000 | }, |
| 1001 | { |
| 1002 | "description": "map - {_ uint/1/min}", |
| 1003 | "input": "bf63666f6f1800ff", |
| 1004 | "expect": { |
| 1005 | "map": { |
| 1006 | "foo": { |
| 1007 | "uint": 0 |
| 1008 | } |
| 1009 | } |
| 1010 | } |
| 1011 | }, |
| 1012 | { |
| 1013 | "description": "map - {_ uint/8/max}", |
| 1014 | "input": "bf63666f6f1bffffffffffffffffff", |
| 1015 | "expect": { |
| 1016 | "map": { |
| 1017 | "foo": { |
| 1018 | "uint": 18446744073709551615 |
| 1019 | } |
| 1020 | } |
| 1021 | } |
| 1022 | }, |
| 1023 | { |
| 1024 | "description": "map - {_ negint/0/min}", |
| 1025 | "input": "bf63666f6f20ff", |
| 1026 | "expect": { |
| 1027 | "map": { |
| 1028 | "foo": { |
| 1029 | "negint": -1 |
| 1030 | } |
| 1031 | } |
| 1032 | } |
| 1033 | }, |
| 1034 | { |
| 1035 | "description": "map - {_ negint/1/min}", |
| 1036 | "input": "bf63666f6f3800ff", |
| 1037 | "expect": { |
| 1038 | "map": { |
| 1039 | "foo": { |
| 1040 | "negint": -1 |
| 1041 | } |
| 1042 | } |
| 1043 | } |
| 1044 | }, |
| 1045 | { |
| 1046 | "description": "map - {_ negint/1/max}", |
| 1047 | "input": "bf63666f6f38ffff", |
| 1048 | "expect": { |
| 1049 | "map": { |
| 1050 | "foo": { |
| 1051 | "negint": -256 |
| 1052 | } |
| 1053 | } |
| 1054 | } |
| 1055 | }, |
| 1056 | { |
| 1057 | "description": "map - {_ negint/2/max}", |
| 1058 | "input": "bf63666f6f39ffffff", |
| 1059 | "expect": { |
| 1060 | "map": { |
| 1061 | "foo": { |
| 1062 | "negint": -65536 |
| 1063 | } |
| 1064 | } |
| 1065 | } |
| 1066 | }, |
| 1067 | { |
| 1068 | "description": "map - {_ negint/4/min}", |
| 1069 | "input": "bf63666f6f3a00000000ff", |
| 1070 | "expect": { |
| 1071 | "map": { |
| 1072 | "foo": { |
| 1073 | "negint": -1 |
| 1074 | } |
| 1075 | } |
| 1076 | } |
| 1077 | }, |
| 1078 | { |
| 1079 | "description": "map - {_ true}", |
| 1080 | "input": "bf63666f6ff5ff", |
| 1081 | "expect": { |
| 1082 | "map": { |
| 1083 | "foo": { |
| 1084 | "bool": true |
| 1085 | } |
| 1086 | } |
| 1087 | } |
| 1088 | }, |
| 1089 | { |
| 1090 | "description": "map - {uint/2/max}", |
| 1091 | "input": "a163666f6f19ffff", |
| 1092 | "expect": { |
| 1093 | "map": { |
| 1094 | "foo": { |
| 1095 | "uint": 65535 |
| 1096 | } |
| 1097 | } |
| 1098 | } |
| 1099 | }, |
| 1100 | { |
| 1101 | "description": "map - {uint/8/max}", |
| 1102 | "input": "a163666f6f1bffffffffffffffff", |
| 1103 | "expect": { |
| 1104 | "map": { |
| 1105 | "foo": { |
| 1106 | "uint": 18446744073709551615 |
| 1107 | } |
| 1108 | } |
| 1109 | } |
| 1110 | }, |
| 1111 | { |
| 1112 | "description": "map - {negint/0/max}", |
| 1113 | "input": "a163666f6f37", |
| 1114 | "expect": { |
| 1115 | "map": { |
| 1116 | "foo": { |
| 1117 | "negint": -24 |
| 1118 | } |
| 1119 | } |
| 1120 | } |
| 1121 | }, |
| 1122 | { |
| 1123 | "description": "map - {negint/1/max}", |
| 1124 | "input": "a163666f6f38ff", |
| 1125 | "expect": { |
| 1126 | "map": { |
| 1127 | "foo": { |
| 1128 | "negint": -256 |
| 1129 | } |
| 1130 | } |
| 1131 | } |
| 1132 | }, |
| 1133 | { |
| 1134 | "description": "map - {negint/2/max}", |
| 1135 | "input": "a163666f6f39ffff", |
| 1136 | "expect": { |
| 1137 | "map": { |
| 1138 | "foo": { |
| 1139 | "negint": -65536 |
| 1140 | } |
| 1141 | } |
| 1142 | } |
| 1143 | }, |
| 1144 | { |
| 1145 | "description": "map - {negint/4/min}", |
| 1146 | "input": "a163666f6f3a00000000", |
| 1147 | "expect": { |
| 1148 | "map": { |
| 1149 | "foo": { |
| 1150 | "negint": -1 |
| 1151 | } |
| 1152 | } |
| 1153 | } |
| 1154 | }, |
| 1155 | { |
| 1156 | "description": "map - {negint/8/max}", |
| 1157 | "input": "a163666f6f3bfffffffffffffffe", |
| 1158 | "expect": { |
| 1159 | "map": { |
| 1160 | "foo": { |
| 1161 | "negint": -18446744073709551615 |
| 1162 | } |
| 1163 | } |
| 1164 | } |
| 1165 | }, |
| 1166 | { |
| 1167 | "description": "map - {float64}", |
| 1168 | "input": "a163666f6ffb7ff0000000000000", |
| 1169 | "expect": { |
| 1170 | "map": { |
| 1171 | "foo": { |
| 1172 | "float64": 9218868437227405312 |
| 1173 | } |
| 1174 | } |
| 1175 | } |
| 1176 | }, |
| 1177 | { |
| 1178 | "description": "map - {_ uint/0/min}", |
| 1179 | "input": "bf63666f6f00ff", |
| 1180 | "expect": { |
| 1181 | "map": { |
| 1182 | "foo": { |
| 1183 | "uint": 0 |
| 1184 | } |
| 1185 | } |
| 1186 | } |
| 1187 | }, |
| 1188 | { |
| 1189 | "description": "map - {_ uint/4/min}", |
| 1190 | "input": "bf63666f6f1a00000000ff", |
| 1191 | "expect": { |
| 1192 | "map": { |
| 1193 | "foo": { |
| 1194 | "uint": 0 |
| 1195 | } |
| 1196 | } |
| 1197 | } |
| 1198 | }, |
| 1199 | { |
| 1200 | "description": "map - {_ uint/8/min}", |
| 1201 | "input": "bf63666f6f1b0000000000000000ff", |
| 1202 | "expect": { |
| 1203 | "map": { |
| 1204 | "foo": { |
| 1205 | "uint": 0 |
| 1206 | } |
| 1207 | } |
| 1208 | } |
| 1209 | }, |
| 1210 | { |
| 1211 | "description": "map - {uint/1/max}", |
| 1212 | "input": "a163666f6f18ff", |
| 1213 | "expect": { |
| 1214 | "map": { |
| 1215 | "foo": { |
| 1216 | "uint": 255 |
| 1217 | } |
| 1218 | } |
| 1219 | } |
| 1220 | }, |
| 1221 | { |
| 1222 | "description": "map - {negint/2/min}", |
| 1223 | "input": "a163666f6f390000", |
| 1224 | "expect": { |
| 1225 | "map": { |
| 1226 | "foo": { |
| 1227 | "negint": -1 |
| 1228 | } |
| 1229 | } |
| 1230 | } |
| 1231 | }, |
| 1232 | { |
| 1233 | "description": "map - {negint/8/min}", |
| 1234 | "input": "a163666f6f3b0000000000000000", |
| 1235 | "expect": { |
| 1236 | "map": { |
| 1237 | "foo": { |
| 1238 | "negint": -1 |
| 1239 | } |
| 1240 | } |
| 1241 | } |
| 1242 | }, |
| 1243 | { |
| 1244 | "description": "map - {true}", |
| 1245 | "input": "a163666f6ff5", |
| 1246 | "expect": { |
| 1247 | "map": { |
| 1248 | "foo": { |
| 1249 | "bool": true |
| 1250 | } |
| 1251 | } |
| 1252 | } |
| 1253 | }, |
| 1254 | { |
| 1255 | "description": "map - {_ uint/2/min}", |
| 1256 | "input": "bf63666f6f190000ff", |
| 1257 | "expect": { |
| 1258 | "map": { |
| 1259 | "foo": { |
| 1260 | "uint": 0 |
| 1261 | } |
| 1262 | } |
| 1263 | } |
| 1264 | }, |
| 1265 | { |
| 1266 | "description": "map - {_ negint/8/min}", |
| 1267 | "input": "bf63666f6f3b0000000000000000ff", |
| 1268 | "expect": { |
| 1269 | "map": { |
| 1270 | "foo": { |
| 1271 | "negint": -1 |
| 1272 | } |
| 1273 | } |
| 1274 | } |
| 1275 | }, |
| 1276 | { |
| 1277 | "description": "map - {_ negint/8/max}", |
| 1278 | "input": "bf63666f6f3bfffffffffffffffeff", |
| 1279 | "expect": { |
| 1280 | "map": { |
| 1281 | "foo": { |
| 1282 | "negint": -18446744073709551615 |
| 1283 | } |
| 1284 | } |
| 1285 | } |
| 1286 | }, |
| 1287 | { |
| 1288 | "description": "map - {uint/0/max}", |
| 1289 | "input": "a163666f6f17", |
| 1290 | "expect": { |
| 1291 | "map": { |
| 1292 | "foo": { |
| 1293 | "uint": 23 |
| 1294 | } |
| 1295 | } |
| 1296 | } |
| 1297 | }, |
| 1298 | { |
| 1299 | "description": "map - {negint/4/max}", |
| 1300 | "input": "a163666f6f3affffffff", |
| 1301 | "expect": { |
| 1302 | "map": { |
| 1303 | "foo": { |
| 1304 | "negint": -4294967296 |
| 1305 | } |
| 1306 | } |
| 1307 | } |
| 1308 | }, |
| 1309 | { |
| 1310 | "description": "map - {null}", |
| 1311 | "input": "a163666f6ff6", |
| 1312 | "expect": { |
| 1313 | "map": { |
| 1314 | "foo": { |
| 1315 | "null": {} |
| 1316 | } |
| 1317 | } |
| 1318 | } |
| 1319 | }, |
| 1320 | { |
| 1321 | "description": "map - {_ uint/4/max}", |
| 1322 | "input": "bf63666f6f1affffffffff", |
| 1323 | "expect": { |
| 1324 | "map": { |
| 1325 | "foo": { |
| 1326 | "uint": 4294967295 |
| 1327 | } |
| 1328 | } |
| 1329 | } |
| 1330 | }, |
| 1331 | { |
| 1332 | "description": "map - {_ float64}", |
| 1333 | "input": "bf63666f6ffb7ff0000000000000ff", |
| 1334 | "expect": { |
| 1335 | "map": { |
| 1336 | "foo": { |
| 1337 | "float64": 9218868437227405312 |
| 1338 | } |
| 1339 | } |
| 1340 | } |
| 1341 | }, |
| 1342 | { |
| 1343 | "description": "map - {uint/2/min}", |
| 1344 | "input": "a163666f6f190000", |
| 1345 | "expect": { |
| 1346 | "map": { |
| 1347 | "foo": { |
| 1348 | "uint": 0 |
| 1349 | } |
| 1350 | } |
| 1351 | } |
| 1352 | }, |
| 1353 | { |
| 1354 | "description": "map - {uint/4/min}", |
| 1355 | "input": "a163666f6f1a00000000", |
| 1356 | "expect": { |
| 1357 | "map": { |
| 1358 | "foo": { |
| 1359 | "uint": 0 |
| 1360 | } |
| 1361 | } |
| 1362 | } |
| 1363 | }, |
| 1364 | { |
| 1365 | "description": "map - {negint/1/min}", |
| 1366 | "input": "a163666f6f3800", |
| 1367 | "expect": { |
| 1368 | "map": { |
| 1369 | "foo": { |
| 1370 | "negint": -1 |
| 1371 | } |
| 1372 | } |
| 1373 | } |
| 1374 | }, |
| 1375 | { |
| 1376 | "description": "map - {_ uint/1/max}", |
| 1377 | "input": "bf63666f6f18ffff", |
| 1378 | "expect": { |
| 1379 | "map": { |
| 1380 | "foo": { |
| 1381 | "uint": 255 |
| 1382 | } |
| 1383 | } |
| 1384 | } |
| 1385 | }, |
| 1386 | { |
| 1387 | "description": "map - {_ uint/2/max}", |
| 1388 | "input": "bf63666f6f19ffffff", |
| 1389 | "expect": { |
| 1390 | "map": { |
| 1391 | "foo": { |
| 1392 | "uint": 65535 |
| 1393 | } |
| 1394 | } |
| 1395 | } |
| 1396 | }, |
| 1397 | { |
| 1398 | "description": "map - {_ negint/4/max}", |
| 1399 | "input": "bf63666f6f3affffffffff", |
| 1400 | "expect": { |
| 1401 | "map": { |
| 1402 | "foo": { |
| 1403 | "negint": -4294967296 |
| 1404 | } |
| 1405 | } |
| 1406 | } |
| 1407 | }, |
| 1408 | { |
| 1409 | "description": "tag - 0/min", |
| 1410 | "input": "c074323030332D31322D31335431383A33303A30325A", |
| 1411 | "expect": { |
| 1412 | "tag": { |
| 1413 | "id": 0, |
| 1414 | "value": { |
| 1415 | "string": "2003-12-13T18:30:02Z" |
| 1416 | } |
| 1417 | } |
| 1418 | } |
| 1419 | }, |
| 1420 | { |
| 1421 | "description": "tag - 1/min", |
| 1422 | "input": "d80074323030332D31322D31335431383A33303A30325A", |
| 1423 | "expect": { |
| 1424 | "tag": { |
| 1425 | "id": 0, |
| 1426 | "value": { |
| 1427 | "string": "2003-12-13T18:30:02Z" |
| 1428 | } |
| 1429 | } |
| 1430 | } |
| 1431 | }, |
| 1432 | { |
| 1433 | "description": "tag - 1/max", |
| 1434 | "input": "d8ff01", |
| 1435 | "expect": { |
| 1436 | "tag": { |
| 1437 | "id": 255, |
| 1438 | "value": { |
| 1439 | "uint": 1 |
| 1440 | } |
| 1441 | } |
| 1442 | } |
| 1443 | }, |
| 1444 | { |
| 1445 | "description": "tag - 4/min", |
| 1446 | "input": "da0000000074323030332D31322D31335431383A33303A30325A", |
| 1447 | "expect": { |
| 1448 | "tag": { |
| 1449 | "id": 0, |
| 1450 | "value": { |
| 1451 | "string": "2003-12-13T18:30:02Z" |
| 1452 | } |
| 1453 | } |
| 1454 | } |
| 1455 | }, |
| 1456 | { |
| 1457 | "description": "tag - 8/min", |
| 1458 | "input": "db000000000000000074323030332D31322D31335431383A33303A30325A", |
| 1459 | "expect": { |
| 1460 | "tag": { |
| 1461 | "id": 0, |
| 1462 | "value": { |
| 1463 | "string": "2003-12-13T18:30:02Z" |
| 1464 | } |
| 1465 | } |
| 1466 | } |
| 1467 | }, |
| 1468 | { |
| 1469 | "description": "tag - 0/max", |
| 1470 | "input": "d701", |
| 1471 | "expect": { |
| 1472 | "tag": { |
| 1473 | "id": 23, |
| 1474 | "value": { |
| 1475 | "uint": 1 |
| 1476 | } |
| 1477 | } |
| 1478 | } |
| 1479 | }, |
| 1480 | { |
| 1481 | "description": "tag - 2/min", |
| 1482 | "input": "d9000074323030332D31322D31335431383A33303A30325A", |
| 1483 | "expect": { |
| 1484 | "tag": { |
| 1485 | "id": 0, |
| 1486 | "value": { |
| 1487 | "string": "2003-12-13T18:30:02Z" |
| 1488 | } |
| 1489 | } |
| 1490 | } |
| 1491 | }, |
| 1492 | { |
| 1493 | "description": "tag - 2/max", |
| 1494 | "input": "d9fffe01", |
| 1495 | "expect": { |
| 1496 | "tag": { |
| 1497 | "id": 65534, |
| 1498 | "value": { |
| 1499 | "uint": 1 |
| 1500 | } |
| 1501 | } |
| 1502 | } |
| 1503 | }, |
| 1504 | { |
| 1505 | "description": "tag - 4/max", |
| 1506 | "input": "dafffffffe01", |
| 1507 | "expect": { |
| 1508 | "tag": { |
| 1509 | "id": 4294967294, |
| 1510 | "value": { |
| 1511 | "uint": 1 |
| 1512 | } |
| 1513 | } |
| 1514 | } |
| 1515 | }, |
| 1516 | { |
| 1517 | "description": "tag - 8/max", |
| 1518 | "input": "dbfffffffffffffffe01", |
| 1519 | "expect": { |
| 1520 | "tag": { |
| 1521 | "id": 18446744073709551614, |
| 1522 | "value": { |
| 1523 | "uint": 1 |
| 1524 | } |
| 1525 | } |
| 1526 | } |
| 1527 | } |
| 1528 | ] |