mirror of
https://github.com/boostorg/math.git
synced 2026-01-19 04:22:09 +00:00
Coverage: extra lambert_w test cases.
This commit is contained in:
@@ -352,6 +352,11 @@ void test_spots(RealType)
|
||||
#ifndef BOOST_NO_EXCEPTIONS
|
||||
BOOST_CHECK_THROW(lambert_w0<RealType>(-1.), std::domain_error);
|
||||
BOOST_CHECK_THROW(lambert_wm1<RealType>(-1.), std::domain_error);
|
||||
BOOST_CHECK_THROW(lambert_wm1<RealType>(1.), std::domain_error);
|
||||
if (std::numeric_limits<RealType>::has_denorm)
|
||||
{
|
||||
BOOST_CHECK_THROW(lambert_wm1<RealType>(-std::numeric_limits<RealType>::denorm_min()), std::overflow_error);
|
||||
}
|
||||
if (std::numeric_limits<RealType>::has_quiet_NaN)
|
||||
{
|
||||
BOOST_CHECK_THROW(lambert_w0<RealType>(std::numeric_limits<RealType>::quiet_NaN()), std::domain_error); // Would be NaN.
|
||||
|
||||
Reference in New Issue
Block a user