-
Notifications
You must be signed in to change notification settings - Fork 18
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
Euclideanring overflow #30
Conversation
This looks like it's about right to me, @hdgarrood what do you think? (I'm not really sure if saying that overflow = success is a safe assumption) (Sorry about the delays on these @jacereda, will get these enum things in ASAP now - thanks very much for working on them). |
Yeah I agree, this assumption seems fine for I think the answer is really to use a newtype which only generates pairs of values which do not overflow when multiplied. Maybe problems like this are really a sign that the quickcheck approach of using a standard generator for any type is not the best approach here. |
I guess it isn't perfect, but isn't failing the test worse? |
No, I think a false negative (tests pass and miss an error they should have caught) is worse than a false positive (tests fail due to overflow which we were expecting anyway), especially since we can address the latter using a newtype. |
Looks like the next action for this PR is to drop the overflow check and instead wrap |
Superceded by #58 |
No description provided.