-
-
Notifications
You must be signed in to change notification settings - Fork 18
Hypothesis: Add tests for rotate() #64
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
Conversation
d4c8b15 to
c738df3
Compare
|
@astronouth7303 @pathunstrom Actually, Hypothesis finds some annoying numerical instabilities even without the rounding (due to the way we compute |
|
I would say create a separate PR for it. If you discover more bugs, this PR could become large. |
|
@astronouth7303 So, ship as-is and send another PR to fix the bug exposed by the test? |
|
In the other order, yes. |
c738df3 to
f8c4bd2
Compare
|
@astronouth7303 Weird, but OK. |
924108e to
b465794
Compare
|
#67 contains the first 2 commits, which fix the bug exposed by Hypothesis. |
|
The blocker for this right now is that I've found a clear failure of the linearity test. |
ce4b041 to
cc7a375
Compare
|
@astronouth7303 I rebased and cleaned up the history a bit (the resulting diff is equivalent, though). Also, I noticed that the comment on the example you provide says “Rotation must not be an multiple of 90deg”, while you set |
|
Yes, in order to trigger the test case, the angle must not be axis-aligned (0, 90, 180, 270, etc). So the demo data uses 45deg as the sample. I listed out the rules of how to trigger the bug, as best as I could discover them. |
|
Oh, yes, I'm very good at reading and missed the “not” there. Sorry |
1fa0fa6 to
0c64fed
Compare
`rel_to` (“relative to”) specifies additional values that `rel_tol` (relative tolerance) should be applied against.
|
Finally fixed <3 |
|
Sweet! Is there anything else that needs to happen? |
|
@astronouth7303 Not for this branch? Tests pass :D |
Based off #62
Thanks to @astronouth7303 for writing the initial version of the test.
@pathunstrom If you confirm that the issue uncovered by Hypothesis is a bug, I can add commits fixing it to this branch.