Skip to content

Commit e7811c0

Browse files
committed
Merge branch 'main' of github.com:morpho-labs/data-structures into fix/setup
2 parents f9a86b4 + 84f5cf3 commit e7811c0

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ MAKEFLAGS += --no-print-directory
44

55

66
install:
7-
yarn
7+
yarn
88
foundryup
99
git submodule update --init --recursive
1010

test/TestCommonHeapOrdering.t.sol

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)