1 // Copyright John Maddock 2006-15.
2 // Copyright Paul A. Bristow 2007
3 // Use, modification and distribution are subject to the
4 // Boost Software License, Version 1.0. (See accompanying file
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 #define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error
8 #include "bindings.hpp"
9 #include "../../test/test_bessel_i_prime.hpp"
10 #include <boost/math/special_functions/bessel_prime.hpp>
12 BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES(test_main
, 10000);
14 BOOST_AUTO_TEST_CASE(test_main
)
16 BOOST_MATH_CONTROL_FP
;
18 error_stream_replacer rep
;
22 test_bessel(static_cast<TYPE_TO_TEST
>(0), NAME_OF_TYPE_TO_TEST
);
25 bool test_float
= false;
26 bool test_double
= false;
27 bool test_long_double
= false;
29 if(std::numeric_limits
<long double>::digits
== std::numeric_limits
<double>::digits
)
32 // Don't bother with long double, it's the same as double:
34 if(BOOST_MATH_PROMOTE_FLOAT_POLICY
== false)
40 if(BOOST_MATH_PROMOTE_FLOAT_POLICY
== false)
42 if(BOOST_MATH_PROMOTE_DOUBLE_POLICY
== false)
44 test_long_double
= true;
47 #ifdef ALWAYS_TEST_DOUBLE
52 test_bessel(0.0f
, "float");
54 test_bessel(0.0, "double");
56 test_bessel(0.0L, "long double");
57 #ifdef BOOST_MATH_USE_FLOAT128
58 //test_bessel(0.0Q, "__float128");