-
Notifications
You must be signed in to change notification settings - Fork 102
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
Add non-fatal failure check to rmc prelude #695
Comments
Note to self: Revert the hack made to the existing testcases here: #687 |
Found this issue while looking for "shuffle"... Is this something we still want? |
I'm OK closing this. |
I still want I think it'd at least be good for ourselves writing tests, and possibly as extra documentation making it clear that |
Closing this one since we haven't found any use case for it. |
Requested feature: Provide a mechanism for users to add property check to their code that do not abort the program when a failure occurs.
Use case: This can be extremely helpful for adding more information to potential fatal failures without affecting the code path. This can also help while writing tests for RMC.
Link to relevant documentation (Rust reference, Nomicon, RFC):
Is this a breaking change? None
Test case:
In this harness, it might be helpful to understand if 1 or more items are missing from the array. With
rmc::check()
we can easily verify all the elements and find as many failures as possible. If we replacermc::check
byassert
the analysis would stop in the first failure.The text was updated successfully, but these errors were encountered: