Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (cb925b1 2022-11-21T00:09:19.970948Z)
What command(s) is the bug in?
forge test
Operating System
macOS (Apple Silicon)
Describe the bug
Given the following test:
function testMultipleReverts() public {
vm.expectRevert();
revert();
vm.expectRevert();
console2.log("Do not revert");
}
Forge will consider the test to be passed, even if it should be failed, because there is no second revert.
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (cb925b1 2022-11-21T00:09:19.970948Z)
What command(s) is the bug in?
forge test
Operating System
macOS (Apple Silicon)
Describe the bug
Given the following test:
Forge will consider the test to be passed, even if it should be failed, because there is no second revert.