Skip to content

Commit

Permalink
Merge pull request #48 from 0xPhaze/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
d-xo authored Feb 24, 2023
2 parents 6f7efd3 + c092d67 commit 6da7dd8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/test.sol
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ contract DSTest {
}
}

function fail() internal {
function fail() internal virtual {
if (hasHEVMContext()) {
(bool status, ) = HEVM_ADDRESS.call(
abi.encodePacked(
Expand Down
7 changes: 7 additions & 0 deletions src/test.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -303,4 +303,11 @@ contract DemoTest is DSTest {
function testFailAssertLeDecimalIntWithMsg() public {
assertLeDecimal(-1, -2, 18, "msg");
}

// --- fail override ---

// ensure that fail can be overridden
function fail() internal override {
super.fail();
}
}

0 comments on commit 6da7dd8

Please sign in to comment.