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

Quickcheck: Investigate always testing special cases #46

Closed
japaric opened this issue Aug 19, 2016 · 1 comment
Closed

Quickcheck: Investigate always testing special cases #46

japaric opened this issue Aug 19, 2016 · 1 comment

Comments

@japaric
Copy link
Member

japaric commented Aug 19, 2016

Right now we test the intrinsics by feeding them random input arguments. Given that we have full control of the Arbitrary implementation perhaps we can tweak the implementation to always generates special cases at the beginning. In other words, change the generated inputs from:

Today: e.g. i32 inputs: <rand>, <rand>, <rand>, ...
To: i32::MIN, 0, i32::MAX, <rand>, <rand>, ...

@japaric japaric changed the title Investigate always testing special cases Quickcheck: Investigate always testing special cases Aug 19, 2016
@japaric
Copy link
Member Author

japaric commented Aug 23, 2016

With #49, we now are testing edge cases. #48 will test edge cases on floats.

@japaric japaric closed this as completed Aug 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant