2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Allow test_log1p_simple.cpp to be run with no exceptions.

This commit is contained in:
jzmaddock
2025-05-14 11:26:11 +01:00
parent d1101432c4
commit b20cbfacd4

View File

@@ -42,9 +42,10 @@ void test_log1pmx()
const T value (dist2(rng));
CHECK_ULP_CLOSE(std::log1p(value) - value, boost::math::log1pmx(value), 1e9);
}
#ifndef BOOST_MATH_NO_EXCEPTIONS
CHECK_THROW(boost::math::log1pmx(T(-1.1)), std::domain_error);
CHECK_THROW(boost::math::log1pmx(T(-1.0)), std::overflow_error);
#endif
}
int main()