-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
Added approx_eq! macro for expm1 tests. #665
Conversation
Added approx_eq! macro for expm1 tests due to floating point arithmetic inaccuracies, using default ULP & epsilon values. approx_eq! macro does not work for NaN values, however, for tests this should be okay anyway! Solves #664.
Codecov Report
@@ Coverage Diff @@
## master #665 +/- ##
==========================================
+ Coverage 72.69% 72.75% +0.05%
==========================================
Files 179 179
Lines 13409 13421 +12
==========================================
+ Hits 9748 9764 +16
+ Misses 3661 3657 -4
Continue to review full report at Codecov.
|
Removed std feature as was unused in test.
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.
Thanks! it looks perfect. You only need to move the new dependency to the [dev-dependencies]
section.
Refactors tan() unit test, previously unused, to use approx_eq!() macro for assertion to pass on CI.
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.
This is good to go from my side!
Added approx_eq! macro for expm1 tests due to floating point arithmetic
inaccuracies, using default ULP & epsilon values. approx_eq! macro does
not work for NaN values, however, for tests this should be okay anyway!
Solves #664.
This Pull Request fixes/closes #664.
It changes the following:
builtins::math::tests::expm1
strict equals assertion to approx_eq assertion