Skip to content

Commit

Permalink
test: simplify simple state test
Browse files Browse the repository at this point in the history
  • Loading branch information
daejunpark committed Sep 4, 2024
1 parent ca1abbf commit a01bcb5
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions examples/simple/test/SimpleState.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,10 @@ contract SimpleStateTest is SymTest, Test {
function check_buggy() public {
bool success;

(success,) = target.call(CreateCalldata(address(svm)).createCalldata("SimpleState"));
vm.assume(success);
(success,) = target.call(CreateCalldata(address(svm)).createCalldata("SimpleState"));
vm.assume(success);
(success,) = target.call(CreateCalldata(address(svm)).createCalldata("SimpleState"));
vm.assume(success);
(success,) = target.call(CreateCalldata(address(svm)).createCalldata("SimpleState"));
vm.assume(success);
(success,) = target.call(CreateCalldata(address(svm)).createCalldata("SimpleState"));
vm.assume(success);
(success,) = target.call(CreateCalldata(address(svm)).createCalldata("SimpleState"));
vm.assume(success);
(success,) = target.call(CreateCalldata(address(svm)).createCalldata("SimpleState"));
vm.assume(success);
(success,) = target.call(CreateCalldata(address(svm)).createCalldata("SimpleState"));
vm.assume(success);
(success,) = target.call(CreateCalldata(address(svm)).createCalldata("SimpleState"));
vm.assume(success);
(success,) = target.call(CreateCalldata(address(svm)).createCalldata("SimpleState"));
vm.assume(success);
for (uint i = 0; i < 10; i++) {
(success,) = target.call(CreateCalldata(address(svm)).createCalldata("SimpleState"));
vm.assume(success);
}

assertFalse(buggy());
}
Expand Down

0 comments on commit a01bcb5

Please sign in to comment.