diff options
Diffstat (limited to 'libs/math/test/test_constants.cpp')
-rw-r--r-- | libs/math/test/test_constants.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/math/test/test_constants.cpp b/libs/math/test/test_constants.cpp index e309cacb2..59eb008f6 100644 --- a/libs/math/test/test_constants.cpp +++ b/libs/math/test/test_constants.cpp @@ -58,6 +58,10 @@ constexpr float fval = boost::math::constants::pi<float>(); constexpr double dval = boost::math::constants::pi<double>(); constexpr long double ldval = boost::math::constants::pi<long double>(); +constexpr float fval2 = boost::math::float_constants::pi; +constexpr double dval2 = boost::math::double_constants::pi; +constexpr long double ldval2 = boost::math::long_double_constants::pi; + #endif // We need to declare a conceptual type whose precision is unknown at @@ -777,6 +781,7 @@ BOOST_AUTO_TEST_CASE( test_main ) test_float_spots(); // Test float_constants, like boost::math::float_constants::pi; test_double_spots(); // Test double_constants. +#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS test_long_double_spots(); // Test long_double_constants. #ifdef BOOST_MATH_USE_FLOAT128 test_float128(); @@ -787,7 +792,7 @@ BOOST_AUTO_TEST_CASE( test_main ) test_real_concept_policy(real_concept_policy_2()); // Increased precision forcing construction from string. test_real_concept_policy(real_concept_policy_3()); // Increased precision forcing caching of computed values. test_real_concept_policy(boost::math::policies::policy<>()); // Default. - +#endif // (Parameter value, arbitrarily zero, only communicates the floating-point type). test_spots(0.0F); // Test float. test_spots(0.0); // Test double. |