depot/third_party/nixpkgs/pkgs/development/libraries/xsimd/disable-polar-test.patch
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

35 lines
1,011 B
Diff

commit 9374b88b97911d9c6e19d5e764e25183cd45d534
Author: Doron Behar <doron.behar@gmail.com>
Date: Tue Aug 1 13:29:16 2023 +0300
aarch64-Darwin: Disable failing polar test
diff --git a/test/test_xsimd_api.cpp b/test/test_xsimd_api.cpp
index 1b29742..03c6b4b 100644
--- a/test/test_xsimd_api.cpp
+++ b/test/test_xsimd_api.cpp
@@ -652,12 +652,6 @@ struct xsimd_api_float_types_functions
value_type val1(4);
CHECK_EQ(extract(xsimd::nextafter(T(val0), T(val1))), std::nextafter(val0, val1));
}
- void test_polar()
- {
- value_type val0(3);
- value_type val1(4);
- CHECK_EQ(extract(xsimd::polar(T(val0), T(val1))), std::polar(val0, val1));
- }
void test_pow()
{
value_type val0(2);
@@ -912,11 +906,6 @@ TEST_CASE_TEMPLATE("[xsimd api | float types functions]", B, FLOAT_TYPES)
Test.test_nextafter();
}
- SUBCASE("polar")
- {
- Test.test_polar();
- }
-
SUBCASE("pow")
{
Test.test_pow();