mirror of
https://github.com/boostorg/math.git
synced 2026-01-19 04:22:09 +00:00
Coverage: zeta and ulp tweaks for full coverage.
This commit is contained in:
@@ -949,7 +949,7 @@ T zeta_imp(T s, T sc, const Policy& pol, const Tag& tag)
|
||||
static const char* function = "boost::math::zeta<%1%>";
|
||||
if(sc == 0)
|
||||
return policies::raise_pole_error<T>(function, "Evaluation of zeta function at pole %1%", s, pol);
|
||||
T result;
|
||||
T result; // LCOV_EXCL_LINE
|
||||
//
|
||||
// Trivial case:
|
||||
//
|
||||
|
||||
@@ -26,6 +26,8 @@ void test()
|
||||
BOOST_CHECK_THROW(boost::math::ulp(std::numeric_limits<T>::infinity()), std::overflow_error);
|
||||
}
|
||||
BOOST_CHECK_THROW(boost::math::ulp(boost::math::tools::max_value<T>()), std::overflow_error);
|
||||
|
||||
BOOST_CHECK(boost::math::ulp(static_cast<T>(0)) != 0);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE( test_main )
|
||||
|
||||
Reference in New Issue
Block a user