-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[doc] Guard values with "ti.approx" in "docs/write_test.rst" to allow FP-error tolerance #1911
Conversation
Co-authored-by: 彭于斌 <1931127624@qq.com>
…= ti.atan2(r[None], s[None])" in "docs/write_test.rst"
…= ti.atan2(r[None])" in "docs/write_test.rst"
…te_test.rst" to make sure the test case scripts pass the assert sentence.
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.
Good job!
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! Thanks for updating the docs! (note I have resolved the conflicts on your branch)
Codecov Report
@@ Coverage Diff @@
## master #1911 +/- ##
=======================================
Coverage 43.86% 43.86%
=======================================
Files 45 45
Lines 6199 6199
Branches 1101 1101
=======================================
Hits 2719 2719
Misses 3311 3311
Partials 169 169 Continue to review full report at Codecov.
|
Some of the test cases in
docs/write_test.rst
will reports an assertion exception error due to the insignificant numerical error betweenti.atan2(y, x)
andmath.atan2(y, x)
, theti.approx(r[None])
will help these test cases pass these tests.