# Run tests with nary = 4 ## (DRAFT) Multi-section fault-proof dispute game https://github.com/ethstorage/optimism/pull/21/files ## 验证 git clone https://github.com/JustXxx/optimism.git cd optimism/packages/contracts-bedrock ### 先验证环境,是否正常 (需要 44 tests succeeded) ``` git checkout -b develop origin/develop forge test --mc FaultDisputeGame_Test ```  ### Run tests with nary = 4 (Suite result: ok. 2 passed; 0 failed; 0 skipped) ``` git checkout -b develop_4ary origin/develop_4ary forge test --mc FaultDisputeGame4Ary_Test ``` #### 主要测试代码 [test_stepAttackDummyClaim_lastAttackFalse_succeeds](https://github.com/JustXxx/optimism/blob/develop_4ary/packages/contracts-bedrock/test/dispute/FaultDisputeGame.t.sol#L1196) [test_stepAttackDummyClaim_lastAttackTrue_reverts](https://github.com/JustXxx/optimism/blob/develop_4ary/packages/contracts-bedrock/test/dispute/FaultDisputeGame.t.sol#L1222C14-L1222C62) 
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up