-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xsimd: reduce precision to fix asin test (#354908)
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/test/test_xsimd_api.cpp b/test/test_xsimd_api.cpp | ||
index f416ae9..1f8253e 100644 | ||
--- a/test/test_xsimd_api.cpp | ||
+++ b/test/test_xsimd_api.cpp | ||
@@ -468,7 +468,8 @@ struct xsimd_api_float_types_functions | ||
void test_asin() | ||
{ | ||
value_type val(1); | ||
- CHECK_EQ(extract(xsimd::asin(T(val))), std::asin(val)); | ||
+ CHECK(extract(xsimd::asin(T(val))) | ||
+ == doctest::Approx(std::asin(val)).epsilon(1e-7)); | ||
} | ||
void test_asinh() | ||
{ |