When writing tests and experimenting, sometimes it is beneficial to let fail() quit as soon as the first test fails. This helps debugging and avoid a lot of logs on screen.
Something like this
function fail() internal {
revert();
}
Marking this function virtual allows us to update this function as necessary.
When writing tests and experimenting, sometimes it is beneficial to let
fail()quit as soon as the first test fails. This helps debugging and avoid a lot of logs on screen.Something like this
Marking this function
virtualallows us to update this function as necessary.