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

Improve edge case testing #504

Open
PSeitz opened this issue Sep 22, 2024 · 2 comments
Open

Improve edge case testing #504

PSeitz opened this issue Sep 22, 2024 · 2 comments
Labels
feature-request This issue is requesting new functionality

Comments

@PSeitz
Copy link

PSeitz commented Sep 22, 2024

To improve on https://github.com/proptest-rs/proptest?tab=readme-ov-file#limitations-of-property-testing, it would be nice if the default distribution would try to cover following edges cases for numbers (u64, i64 etc.):

NUM::MIN
NUM::MAX
NUM::MIN + 1
MIN::MAX -1
NUM::MAX / 2
NUM::MAX / 2 - 1
NUM::MAX / 2 + 1
1<<1
1<<2
1<<3
1<<4
...

This would already cover a lot of use cases. This could be done e.g. that one of those edge case values would be sampled with a 1% probability.

@matthew-russo matthew-russo added the feature-request This issue is requesting new functionality label Sep 22, 2024
@matthew-russo
Copy link
Member

This seems fairly straight forward for numeric types.

Mild amount of overlap with #284.

@matthew-russo
Copy link
Member

#369 for prior art -- will give that a look in a bit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request This issue is requesting new functionality
Projects
None yet
Development

No branches or pull requests

2 participants