diff --git a/test/sycl_jamfile b/test/sycl_jamfile index 686f81dd6..97c48474c 100644 --- a/test/sycl_jamfile +++ b/test/sycl_jamfile @@ -28,6 +28,7 @@ run test_beta_simple.cpp ; run test_bessel_i.cpp ; run test_bessel_j.cpp ; run test_bessel_k.cpp ; +run test_bessel_y.cpp ; run test_cbrt.cpp ; run test_sign.cpp ; run test_round.cpp ; diff --git a/test/test_bessel_y.cpp b/test/test_bessel_y.cpp index 83c24b95f..0bbefba55 100644 --- a/test/test_bessel_y.cpp +++ b/test/test_bessel_y.cpp @@ -3,7 +3,12 @@ // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +#ifndef SYCL_LANGUAGE_VERSION #include +#else +#define BOOST_MATH_PROMOTE_DOUBLE_POLICY false +#include +#endif #include "test_bessel_y.hpp" @@ -234,7 +239,11 @@ void expected_results() ".*", // platform largest_type, // test type(s) ".*(Y[nv]|y).*Random.*", // test data group + #ifdef SYCL_LANGUAGE_VERSION + ".*", 2000, 1000); + #else ".*", 1500, 1000); // test function + #endif // // Fallback for sun has to go after the general cases above: // diff --git a/test/test_bessel_y.hpp b/test/test_bessel_y.hpp index 28361a227..14b0be456 100644 --- a/test/test_bessel_y.hpp +++ b/test/test_bessel_y.hpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -241,10 +242,12 @@ void test_bessel(T, const char* name) BOOST_CHECK_EQUAL(boost::math::sph_neumann(2, std::numeric_limits::infinity()), T(0)); } + #ifndef BOOST_MATH_NO_EXCEPTIONS BOOST_CHECK_THROW(boost::math::cyl_neumann(T(0), T(-1)), std::domain_error); BOOST_CHECK_THROW(boost::math::cyl_neumann(T(0.2), T(-1)), std::domain_error); BOOST_CHECK_THROW(boost::math::cyl_neumann(T(2), T(0)), std::domain_error); BOOST_CHECK_THROW(boost::math::sph_neumann(2, T(-2)), std::domain_error); + #endif #if LDBL_MAX_EXP > 1024 if (std::numeric_limits::max_exponent > 1024) {