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 #include "bindings.hpp"
8 #include "../../test/test_ellint_2.hpp"
9 #include <boost/math/special_functions/ellint_2.hpp>
11 BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES(test_main
, 10000);
13 BOOST_AUTO_TEST_CASE(test_main
)
15 BOOST_MATH_CONTROL_FP
;
17 error_stream_replacer rep
;
21 test_spots(static_cast<TYPE_TO_TEST
>(0), NAME_OF_TYPE_TO_TEST
);
24 bool test_float
= false;
25 bool test_double
= false;
26 bool test_long_double
= false;
28 if(std::numeric_limits
<long double>::digits
== std::numeric_limits
<double>::digits
)
31 // Don't bother with long double, it's the same as double:
33 if(BOOST_MATH_PROMOTE_FLOAT_POLICY
== false)
39 if(BOOST_MATH_PROMOTE_FLOAT_POLICY
== false)
41 if(BOOST_MATH_PROMOTE_DOUBLE_POLICY
== false)
43 test_long_double
= true;
46 #ifdef ALWAYS_TEST_DOUBLE
51 test_spots(0.0f
, "float");
53 test_spots(0.0, "double");
55 test_spots(0.0L, "long double");
56 #ifdef BOOST_MATH_USE_FLOAT128
57 //test_spots(0.0Q, "__float128");