You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As @lucasmt identified, a failed DSTest assertion such as assertLt does not cause the test to revert and fail immediately. Instead, fail() function storesbytes32(uint256(0x01)) at the storage slot bytes32("failed"), which is only checked at the end of the execution as part of foundry_success predicate. Although it is probably expected behavior, it would be more efficient if we allowed Kontrol to identify the test as failing sooner if a DSTest assertion check has failed.
Behavior of DSTest assertions such as assertEq changed to revert immediately with forge-std >= 1.8.0, where support for DSTest was dropped in favor of native Foundry assertions (vm.assertEq(...)), which causes errors such as
As @lucasmt identified, a failed DSTest assertion such asassertLt
does not cause the test to revert and fail immediately. Instead,fail()
function storesbytes32(uint256(0x01))
at the storage slotbytes32("failed")
, which is only checked at the end of the execution as part offoundry_success
predicate. Although it is probably expected behavior, it would be more efficient if we allowed Kontrol to identify the test as failing sooner if a DSTest assertion check has failed.Behavior of DSTest assertions such as
assertEq
changed to revert immediately withforge-std
>= 1.8.0, where support for DSTest was dropped in favor of native Foundry assertions (vm.assertEq(...)
), which causes errors such asThe text was updated successfully, but these errors were encountered: