Skip to content

Commit

Permalink
test: add regression tests for previous issues (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
daejunpark authored Nov 14, 2024
1 parent ac55454 commit ce13a9f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/expected/all.json
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,15 @@
}
],
"test/Foundry.t.sol:FoundryTest": [
{
"name": "check_assertEqCall(uint256,uint256)",
"exitcode": 0,
"num_models": 0,
"models": null,
"num_paths": null,
"time": null,
"num_bounded_loops": null
},
{
"name": "check_assume(uint256)",
"exitcode": 0,
Expand Down
10 changes: 10 additions & 0 deletions tests/regression/test/Foundry.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,16 @@ contract FoundryTest is Test {
// vm.etch(who, code);
// assertEq(code, who.code);
// }

function check_assertEqCall(uint256 a, uint256 b) public {
assertEqCall(
address(this), abi.encodeCall(this._add, (a, b)), abi.encodeCall(this._add, (a, b))
);
}

function _add(uint256 a, uint256 b) public pure returns (uint256 c) {
c = a + b;
}
}


Expand Down

0 comments on commit ce13a9f

Please sign in to comment.