forked from gakonst/ethers-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(forge): No bail on setup (gakonst#434)
* no bail on setup, just fail test * fix test * fix test
- Loading branch information
1 parent
53984da
commit d87c516
Showing
4 changed files
with
114 additions
and
27 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity =0.8.1; | ||
|
||
contract DsTestMini { | ||
bool public failed; | ||
|
||
function fail() private { | ||
failed = true; | ||
} | ||
|
||
function assertEq(uint a, uint b) internal { | ||
if (a != b) { | ||
fail(); | ||
} | ||
} | ||
} | ||
|
||
contract SetupTest is DsTestMini { | ||
function setUp() public { | ||
T t = new T(10); | ||
} | ||
|
||
function testSetupBad() public { | ||
} | ||
|
||
function testSetupBad2() public { | ||
} | ||
} | ||
|
||
|
||
contract T { | ||
constructor(uint256 a) { | ||
uint256 b = a - 100; | ||
} | ||
} |