File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ MAKEFLAGS += --no-print-directory
44
55
66install :
7- yarn
7+ yarn
88 foundryup
99 git submodule update --init --recursive
1010
Original file line number Diff line number Diff line change @@ -336,13 +336,17 @@ abstract contract TestCommonHeapOrdering is Test {
336336 assertEq (heap.indexOf (accounts[3 ]), 3 );
337337 }
338338
339- function testOverflowNewValue () public {
339+ function testOverflowNewValue (uint256 value ) public {
340+ vm.assume (value > type (uint96 ).max);
341+
340342 vm.expectRevert ("SafeCast: value doesn't fit in 96 bits " );
341- update (accounts[0 ], 0 , uint256 ( type ( uint128 ).max) );
343+ update (accounts[0 ], 0 , value );
342344 }
343345
344- function testOverflowFormerValue () public {
346+ function testOverflowFormerValue (uint256 value ) public {
347+ vm.assume (value > type (uint96 ).max);
348+
345349 vm.expectRevert ("SafeCast: value doesn't fit in 96 bits " );
346- update (accounts[0 ], uint256 ( type ( uint128 ).max) , 0 );
350+ update (accounts[0 ], value , 0 );
347351 }
348352}
You can’t perform that action at this time.
0 commit comments