-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
complete unit test and improve logging
Showing
5 changed files
with
57 additions
and
11 deletions.
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
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 |
---|---|---|
@@ -1,11 +1,18 @@ | ||
// This test ensures that all the constants in this contract are added to the value set | ||
contract TestContract { | ||
// Uint constant | ||
uint256 constant x = 123 + 12; | ||
|
||
constructor() {} | ||
|
||
function testFuzz(uint256 z) public { | ||
uint256 x = 123; | ||
int256 y = 5 * 72; | ||
// Set z to x so that 123, 12, and (123 + 12 = 135) are captured as constants | ||
z = x; | ||
// Add a bunch of other constants | ||
int256 y = 456; | ||
address addr = address(0); | ||
string memory str = "hello world"; | ||
bool b = true; | ||
string memory str = "Hello World!"; | ||
assert(false); | ||
} | ||
} |
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