Skip to content

Commit

Permalink
test: add check_etch_then_load (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
karmacoma-eth authored Nov 13, 2024
1 parent c136108 commit ac55454
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
9 changes: 9 additions & 0 deletions tests/expected/all.json
Original file line number Diff line number Diff line change
Expand Up @@ -1166,6 +1166,15 @@
"time": null,
"num_bounded_loops": null
},
{
"name": "check_etch_then_load()",
"exitcode": 0,
"num_models": 0,
"models": null,
"num_paths": null,
"time": null,
"num_bounded_loops": null
},
{
"name": "check_etch_then_store()",
"exitcode": 0,
Expand Down
6 changes: 5 additions & 1 deletion tests/regression/test/Foundry.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ contract FoundryTest is Test {


contract NotEtchFriendly {
address owner;
address public owner;

constructor() {
owner = msg.sender;
Expand Down Expand Up @@ -167,4 +167,8 @@ contract TestNotEtchFriendly is Test {

target.beepBoop();
}

function check_etch_then_load() external {
assertEq(target.owner(), address(0));
}
}

0 comments on commit ac55454

Please sign in to comment.