-
Notifications
You must be signed in to change notification settings - Fork 97
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 a test for discriminant_value
#1021
Add a test for discriminant_value
#1021
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice coverage! Please address the comment below before pushing.
} | ||
|
||
#[kani::proof] | ||
fn main() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please split this into 3 different harnesses? I think it will make this much easier to read.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion, I didn't think about that! It's now split into 4 harnesses, can you take another look?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Maybe next time use ///
to comment the harness instead of the function body. But that is just a test so no need to bother. Thanks!
* Add a test for `discriminant_value` * Split into 4 proofs
* Add a test for `discriminant_value` * Split into 4 proofs
* Add a test for `discriminant_value` * Split into 4 proofs
* Add a test for `discriminant_value` * Split into 4 proofs
Description of changes:
Adds a test for
discriminant_value
. The implementation works as expected for all covered cases, so this completes the audit for the intrinsic.Resolved issues:
Part of #727
Call-outs:
Testing:
How is this change tested? Adds one test.
Is this a refactor change? No.
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.