Add Halmos support for formal verification (#5034)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
This commit is contained in:
@ -9,7 +9,7 @@ contract PackingTest is Test {
|
||||
using Packing for *;
|
||||
|
||||
// Pack a pair of arbitrary uint128, and check that split recovers the correct values
|
||||
function testUint128x2(uint128 first, uint128 second) external {
|
||||
function testSymbolicUint128x2(uint128 first, uint128 second) external {
|
||||
Packing.Uint128x2 packed = Packing.pack(first, second);
|
||||
assertEq(packed.first(), first);
|
||||
assertEq(packed.second(), second);
|
||||
@ -20,7 +20,7 @@ contract PackingTest is Test {
|
||||
}
|
||||
|
||||
// split an arbitrary bytes32 into a pair of uint128, and check that repack matches the input
|
||||
function testUint128x2(bytes32 input) external {
|
||||
function testSymbolicUint128x2(bytes32 input) external {
|
||||
(uint128 first, uint128 second) = input.asUint128x2().split();
|
||||
assertEq(Packing.pack(first, second).asBytes32(), input);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user