Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tamtamchik committed Sep 5, 2024
1 parent 1aef8c4 commit ba80c84
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/common/math256.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,9 @@ contract Math256Test is Test {
* forge-config: default.fuzz.runs = 2048
* forge-config: default.fuzz.max-test-rejects = 0
*/
function testFuzz_ceilDiv(uint256 a, uint256 b) public {
// This case should always error
function testFuzz_ceilDiv(uint256 a, uint256 b) public pure {
// This case should always error, so skip it
if (b == 0) {
// It shouldn't crash unexpectedly
vm.expectRevert();
Math256.ceilDiv(a, b);
return;
}

Expand Down

0 comments on commit ba80c84

Please sign in to comment.