Skip to content

Commit

Permalink
feat: make fail() virtual
Browse files Browse the repository at this point in the history
Making `fail()` virtual allows us to easily plug in other frameworks.
This can be useful if we want to change the behavior for an `assert(False)` statement, which would allow us to easily adapt a given test-setup for use with Echidna or the SMTChecker for formal verification.
  • Loading branch information
0xPhaze committed Feb 24, 2023
1 parent 6f7efd3 commit fd1f539
Showing 1 changed file with 1 addition 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

0 comments on commit fd1f539

Please sign in to comment.