Skip to content

Commit

Permalink
test: add "view" specifier in test functions
Browse files Browse the repository at this point in the history
  • Loading branch information
andreivladbrg committed May 5, 2024
1 parent a373ec5 commit 6345812
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Contract.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ contract TestContract is Test {
c = new Contract();
}

function test_Foo() public {
function test_Foo() public view {
assertEq(c.foo(1), 1);
}

function testFuzz_Foo(uint256 a) public {
function testFuzz_Foo(uint256 a) public view {
vm.assume(a < type(uint256).max);
assertEq(c.foo(a), a);
}
Expand Down

0 comments on commit 6345812

Please sign in to comment.