-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reverting to the first snapshot in the list, also implicitly resets the array of snapShotIds to Only have one member
- Loading branch information
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// SPDX-License-Identifier: ISC | ||
pragma solidity >=0.8.0; | ||
|
||
import "../src/FraxTest.sol"; | ||
|
||
contract TestMultipleSetup is FraxTest { | ||
uint256 value; | ||
|
||
function initializeValueOne() public { | ||
value = 25; | ||
} | ||
|
||
function initializeValueTwo() public { | ||
value = 5; | ||
} | ||
|
||
function initializeValueThree() public { | ||
value = 10; | ||
} | ||
|
||
function setUp() public { | ||
setupFunctions.push(initializeValueOne); | ||
setupFunctions.push(initializeValueTwo); | ||
setupFunctions.push(initializeValueThree); | ||
addSetupFunctions(setupFunctions); | ||
} | ||
|
||
function testFailAssertValue() public useMultipleSetupFunctions { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
tom2o17
Author
Collaborator
|
||
assertEq(value, 5); | ||
} | ||
} |
What should
value
be equal to in this test?