fix: Fix PLE tests that break after foundry update

--- don't change below this line ---
ENG-4222 Took 12 minutes

Took 15 seconds
This commit is contained in:
Diana Carvalho
2025-02-14 12:28:49 +00:00
parent 8a8bc697eb
commit 69d03f0608

View File

@@ -51,14 +51,16 @@ contract LibPrefixLengthEncodedByteArrayTest is Test {
assertEq(this.size(multiple), 3); assertEq(this.size(multiple), 3);
} }
function testFailInvalidLength() public view { function test_RevertIf_InvalidLength() public {
// Length prefix larger than remaining data // Length prefix larger than remaining data
vm.expectRevert();
bytes memory invalid = hex"0004414243"; bytes memory invalid = hex"0004414243";
this.next(invalid); this.next(invalid);
} }
function testFailIncompletePrefix() public view { function test_RevertIf_IncompletePrefix() public {
// Only 1 byte instead of 2 bytes prefix // Only 1 byte instead of 2 bytes prefix
vm.expectRevert();
bytes memory invalid = hex"01"; bytes memory invalid = hex"01";
this.next(invalid); this.next(invalid);
} }