Skip to content

Commit 7d3772a

Browse files
authored
fix: testFail* has been removed when forge test the contracts (#57)
1 parent dc5c3bb commit 7d3772a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

contracts/test/Fibonacci.t.sol

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ contract FibonacciGroth16Test is Test {
4747
assert(b == fixture.b);
4848
}
4949

50-
function testFail_InvalidFibonacciProof() public view {
50+
function testRevert_InvalidFibonacciProof() public {
51+
vm.expectRevert();
52+
5153
SP1ProofFixtureJson memory fixture = loadFixture();
5254

5355
// Create a fake proof.
@@ -90,7 +92,9 @@ contract FibonacciPlonkTest is Test {
9092
assert(b == fixture.b);
9193
}
9294

93-
function testFail_InvalidFibonacciProof() public view {
95+
function testRevert_InvalidFibonacciProof() public {
96+
vm.expectRevert();
97+
9498
SP1ProofFixtureJson memory fixture = loadFixture();
9599

96100
// Create a fake proof.

0 commit comments

Comments
 (0)