Skip to content

Commit 17082a6

Browse files
committed
Support foundry v1.0 (OpenZeppelin#5511)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
1 parent 0063e6c commit 17082a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/utils/math/Math.t.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ contract MathTest is Test {
204204
assertEq(xyLo, qdRemLo);
205205
}
206206

207+
/// forge-config: default.allow_internal_expect_revert = true
207208
function testMulDivDomain(uint256 x, uint256 y, uint256 d) public {
208209
(uint256 xyHi, ) = _mulHighLow(x, y);
209210

@@ -216,6 +217,7 @@ contract MathTest is Test {
216217
}
217218

218219
// MOD EXP
220+
/// forge-config: default.allow_internal_expect_revert = true
219221
function testModExp(uint256 b, uint256 e, uint256 m) public {
220222
if (m == 0) {
221223
vm.expectRevert(stdError.divisionError);
@@ -236,6 +238,7 @@ contract MathTest is Test {
236238
}
237239
}
238240

241+
/// forge-config: default.allow_internal_expect_revert = true
239242
function testModExpMemory(uint256 b, uint256 e, uint256 m) public {
240243
if (m == 0) {
241244
vm.expectRevert(stdError.divisionError);

0 commit comments

Comments
 (0)