Commit fe42624
test(ic-icrc1-ledger): add state machine tests for ICRC-122/152
- Add icrc122_icrc152 module to ic-ledger-suite-state-machine-tests
- Tests cover:
- test_icrc152_mint_by_controller: mint via controller, verify balance/supply/block btype
- test_icrc152_burn_by_controller: burn via controller, verify balance/supply/block btype
- test_icrc152_unauthorized: non-controller gets Unauthorized error
- test_icrc152_feature_flag_disabled: GenericError(4) when flag is off
- test_icrc152_insufficient_balance: burn > balance returns InsufficientBalance
- test_icrc152_deduplication: same created_at_time returns Duplicate
- test_icrc152_supported_block_types: 122mint/122burn appear in icrc3_supported_block_types
- test_icrc152_supported_standards: ICRC-152 appears in icrc1_supported_standards
- Wire up test wrappers in rs/ledger_suite/icrc1/ledger/tests/tests.rs
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 2ee4fcc commit fe42624
File tree
3 files changed
+557
-0
lines changed- rs/ledger_suite
- icrc1/ledger/tests
- tests/sm-tests/src
3 files changed
+557
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
647 | 711 | | |
648 | 712 | | |
649 | 713 | | |
| |||
0 commit comments