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:
@@ -51,14 +51,16 @@ contract LibPrefixLengthEncodedByteArrayTest is Test {
|
||||
assertEq(this.size(multiple), 3);
|
||||
}
|
||||
|
||||
function testFailInvalidLength() public view {
|
||||
function test_RevertIf_InvalidLength() public {
|
||||
// Length prefix larger than remaining data
|
||||
vm.expectRevert();
|
||||
bytes memory invalid = hex"0004414243";
|
||||
this.next(invalid);
|
||||
}
|
||||
|
||||
function testFailIncompletePrefix() public view {
|
||||
function test_RevertIf_IncompletePrefix() public {
|
||||
// Only 1 byte instead of 2 bytes prefix
|
||||
vm.expectRevert();
|
||||
bytes memory invalid = hex"01";
|
||||
this.next(invalid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user