Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com> Co-authored-by: Francisco Giordano <fg@frang.io> Co-authored-by: Joseph Delong <joseph@delong.me> Co-authored-by: Arr00 <13561405+arr00@users.noreply.github.com> Co-authored-by: Renan Souza <renan.rodrigues.souza1@gmail.com>
This commit is contained in:
@ -204,6 +204,7 @@ contract MathTest is Test {
|
||||
assertEq(xyLo, qdRemLo);
|
||||
}
|
||||
|
||||
/// forge-config: default.allow_internal_expect_revert = true
|
||||
function testMulDivDomain(uint256 x, uint256 y, uint256 d) public {
|
||||
(uint256 xyHi, ) = _mulHighLow(x, y);
|
||||
|
||||
@ -216,6 +217,7 @@ contract MathTest is Test {
|
||||
}
|
||||
|
||||
// MOD EXP
|
||||
/// forge-config: default.allow_internal_expect_revert = true
|
||||
function testModExp(uint256 b, uint256 e, uint256 m) public {
|
||||
if (m == 0) {
|
||||
vm.expectRevert(stdError.divisionError);
|
||||
@ -236,6 +238,7 @@ contract MathTest is Test {
|
||||
}
|
||||
}
|
||||
|
||||
/// forge-config: default.allow_internal_expect_revert = true
|
||||
function testModExpMemory(uint256 b, uint256 e, uint256 m) public {
|
||||
if (m == 0) {
|
||||
vm.expectRevert(stdError.divisionError);
|
||||
|
||||
Reference in New Issue
Block a user