Skip to content

Commit

Permalink
test: add todo tests for not yet supported cheatcode
Browse files Browse the repository at this point in the history
  • Loading branch information
daejunpark committed Jul 18, 2024
1 parent 64afd85 commit a174e85
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions tests/regression/test/StdAssertTest.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,18 @@ contract StdAssertPassTest is Test {
assertEq(x, y);
}

/* TODO:
function check_assertEq(string[] memory x, string[] memory y) public {
vm.assume(keccak256(abi.encode(x)) == keccak256(abi.encode(y)));
assertEq(x, y);
}
function check_assertEq(bytes[] memory x, bytes[] memory y) public {
vm.assume(keccak256(abi.encode(x)) == keccak256(abi.encode(y)));
assertEq(x, y);
}
*/

function check_assertNotEq(bool x, bool y) public {
vm.assume(x != y);
assertNotEq(x, y);
Expand Down Expand Up @@ -137,6 +149,18 @@ contract StdAssertPassTest is Test {
assertNotEq(x, y);
}

/* TODO:
function check_assertNotEq(string[] memory x, string[] memory y) public {
vm.assume(keccak256(abi.encode(x)) != keccak256(abi.encode(y)));
assertNotEq(x, y);
}
function check_assertNotEq(bytes[] memory x, bytes[] memory y) public {
vm.assume(keccak256(abi.encode(x)) != keccak256(abi.encode(y)));
assertNotEq(x, y);
}
*/

function check_assertLt(uint x, uint y) public {
vm.assume(x < y);
assertLt(x, y);
Expand Down Expand Up @@ -252,6 +276,18 @@ contract StdAssertFailTest is Test {
assertEq(x, y);
}

/* TODO:
function check_assertEq(string[] memory x, string[] memory y) public {
vm.assume(!(keccak256(abi.encode(x)) == keccak256(abi.encode(y))));
assertEq(x, y);
}
function check_assertEq(bytes[] memory x, bytes[] memory y) public {
vm.assume(!(keccak256(abi.encode(x)) == keccak256(abi.encode(y))));
assertEq(x, y);
}
*/

function check_assertNotEq(bool x, bool y) public {
vm.assume(!(x != y));
assertNotEq(x, y);
Expand Down Expand Up @@ -312,6 +348,18 @@ contract StdAssertFailTest is Test {
assertNotEq(x, y);
}

/* TODO:
function check_assertNotEq(string[] memory x, string[] memory y) public {
vm.assume(!(keccak256(abi.encode(x)) != keccak256(abi.encode(y))));
assertNotEq(x, y);
}
function check_assertNotEq(bytes[] memory x, bytes[] memory y) public {
vm.assume(!(keccak256(abi.encode(x)) != keccak256(abi.encode(y))));
assertNotEq(x, y);
}
*/

function check_assertLt(uint x, uint y) public {
vm.assume(!(x < y));
assertLt(x, y);
Expand Down Expand Up @@ -427,6 +475,18 @@ contract StdAssertFailLogTest is Test {
assertEq(x, y, "");
}

/* TODO:
function check_assertEq(string[] memory x, string[] memory y) public {
vm.assume(!(keccak256(abi.encode(x)) == keccak256(abi.encode(y))));
assertEq(x, y, "");
}
function check_assertEq(bytes[] memory x, bytes[] memory y) public {
vm.assume(!(keccak256(abi.encode(x)) == keccak256(abi.encode(y))));
assertEq(x, y, "");
}
*/

function check_assertNotEq(bool x, bool y) public {
vm.assume(!(x != y));
assertNotEq(x, y, "");
Expand Down Expand Up @@ -487,6 +547,18 @@ contract StdAssertFailLogTest is Test {
assertNotEq(x, y, "");
}

/* TODO:
function check_assertNotEq(string[] memory x, string[] memory y) public {
vm.assume(!(keccak256(abi.encode(x)) != keccak256(abi.encode(y))));
assertNotEq(x, y, "");
}
function check_assertNotEq(bytes[] memory x, bytes[] memory y) public {
vm.assume(!(keccak256(abi.encode(x)) != keccak256(abi.encode(y))));
assertNotEq(x, y, "");
}
*/

function check_assertLt(uint x, uint y) public {
vm.assume(!(x < y));
assertLt(x, y, "");
Expand Down

0 comments on commit a174e85

Please sign in to comment.