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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user