2
0
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:
jzmaddock
2025-05-12 16:28:27 +01:00
parent d760c314d5
commit d1101432c4
2 changed files with 3 additions and 1 deletions

View File

@@ -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:
//

View File

@@ -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 )