-
Notifications
You must be signed in to change notification settings - Fork 136
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
feat(proptest): Implement proptest::Arbitrary
for UnsignedInteger
#526
feat(proptest): Implement proptest::Arbitrary
for UnsignedInteger
#526
Conversation
Open to any feedback! Always looking to improve. |
Codecov Report
@@ Coverage Diff @@
## main #526 +/- ##
==========================================
- Coverage 94.49% 94.16% -0.33%
==========================================
Files 62 62
Lines 8987 8857 -130
==========================================
- Hits 8492 8340 -152
- Misses 495 517 +22
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
LGTM except for the hard dep on proptest.
math/Cargo.toml
Outdated
@@ -11,6 +11,7 @@ license.workspace = true | |||
thiserror = { version = "1.0", optional = true } | |||
serde = { version = "1.0", features = ["derive"], optional = true } | |||
serde_json = { version = "1.0", optional = true } | |||
proptest = "1.1.0" |
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.
Please, make this dependency optional and use a feature flag. We don't want to force the dependency for users who aren't interested in testing with arbitrary numbers.
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.
Resolved!
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.
Closes #414
Adds an implementation of
proptest::Arbitrary
forUnsignedInteger
. Refactors proptests to useany::<UnsignedInteger>()