Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the unit test of move #47

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

JustXxx
Copy link

@JustXxx JustXxx commented Jul 29, 2024

forge test --mc FaultDisputeGameN_Test --mt .move.

Ran 15 tests for test/dispute/FaultDisputeGameN.t.sol:FaultDisputeGameN_Test
[PASS] test_move_clockCorrectness_succeeds() (gas: 915771)
[PASS] test_move_clockExtensionCorrectnessSplitGrandChild_succeeds() (gas: 259801)
[PASS] test_move_clockTimeExceeded_reverts() (gas: 48804)
[PASS] test_move_correctStatusExecRootForLastAttackBranch_succeeds() (gas: 662122)
[PASS] test_move_correctStatusExecRoot_succeeds() (gas: 681330)
[PASS] test_move_defendRoot_reverts() (gas: 29737)
[PASS] test_move_duplicateClaim_reverts() (gas: 265389)
[PASS] test_move_duplicateClaimsDifferentSubgames_succeeds() (gas: 841908)
[PASS] test_move_gameDepthExceeded_reverts() (gas: 913853)
[PASS] test_move_gameNotInProgress_reverts() (gas: 26248)
[PASS] test_move_incorrectBondAmount_reverts() (gas: 33335)
[PASS] test_move_incorrectDisputedIndex_reverts() (gas: 267329)
[PASS] test_move_incorrectStatusExecRoot_reverts() (gas: 488720)
[PASS] test_move_nonExistentParent_reverts() (gas: 25664)
[PASS] test_move_simpleAttack_succeeds() (gas: 264400)
Suite result: ok. 15 passed; 0 failed; 0 skipped; finished in 301.45ms (10.59ms CPU time)

@JustXxx JustXxx requested review from qizhou and dajuguan July 29, 2024 14:19
Copy link

@dajuguan dajuguan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All tests passed. LGTM.

@JustXxx JustXxx merged commit 8196c03 into bill/unittest_for_addLocalData Jul 31, 2024
2 checks passed
@JustXxx JustXxx deleted the bill/unittest_for_move branch July 31, 2024 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants