Skip to content

Commit

Permalink
test: add empty initial balance test
Browse files Browse the repository at this point in the history
  • Loading branch information
daejunpark committed Aug 23, 2024
1 parent 8f2978c commit 8d9befd
Show file tree
Hide file tree
Showing 2 changed files with 13 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 @@ -829,6 +829,15 @@
"num_paths": null,
"time": null,
"num_bounded_loops": null
},
{
"name": "check_initial_balance(address)",
"exitcode": 0,
"num_models": 0,
"models": null,
"num_paths": null,
"time": null,
"num_bounded_loops": null
}
],
"test/Extcodehash.t.sol:ExtcodehashTest": [
Expand Down
4 changes: 4 additions & 0 deletions tests/regression/test/Deal.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ import "forge-std/Test.sol";
contract DealTest is Test {
C c;

function check_initial_balance(address addr) public {
assertEq(addr.balance, 0);
}

function check_deal_1(address payable receiver, uint amount) public {
vm.deal(receiver, amount);
assert(receiver.balance == amount);
Expand Down

0 comments on commit 8d9befd

Please sign in to comment.