Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use "vm.assume" in invariant tests #837

Open
PaulRBerg opened this issue Mar 6, 2024 · 2 comments
Open

Use "vm.assume" in invariant tests #837

PaulRBerg opened this issue Mar 6, 2024 · 2 comments
Labels
effort: medium Default level of effort. priority: 3 Nice-to-have. Willing to ship without this. type: test Adding, updating, or removing tests. work: clear Sense-categorize-respond. The relationship between cause and effect is clear.

Comments

@PaulRBerg
Copy link
Member

They've recently added support for this feature in invariant tests - for a long time, vm.assume wasn't supported there, but it now is:

foundry-rs/foundry#4190 (comment)

@PaulRBerg PaulRBerg added type: test Adding, updating, or removing tests. work: clear Sense-categorize-respond. The relationship between cause and effect is clear. priority: 3 Nice-to-have. Willing to ship without this. effort: medium Default level of effort. labels Mar 6, 2024
@andreivladbrg
Copy link
Member

This is for if(condition) return something; in invariant handlers, right?

@PaulRBerg
Copy link
Member Author

Yes, IIRC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort: medium Default level of effort. priority: 3 Nice-to-have. Willing to ship without this. type: test Adding, updating, or removing tests. work: clear Sense-categorize-respond. The relationship between cause and effect is clear.
Projects
None yet
Development

No branches or pull requests

2 participants