diff --git a/test/test_lambert_w.cpp b/test/test_lambert_w.cpp index 0587c3f2d..e0cbd24f6 100644 --- a/test/test_lambert_w.cpp +++ b/test/test_lambert_w.cpp @@ -352,6 +352,11 @@ void test_spots(RealType) #ifndef BOOST_NO_EXCEPTIONS BOOST_CHECK_THROW(lambert_w0(-1.), std::domain_error); BOOST_CHECK_THROW(lambert_wm1(-1.), std::domain_error); + BOOST_CHECK_THROW(lambert_wm1(1.), std::domain_error); + if (std::numeric_limits::has_denorm) + { + BOOST_CHECK_THROW(lambert_wm1(-std::numeric_limits::denorm_min()), std::overflow_error); + } if (std::numeric_limits::has_quiet_NaN) { BOOST_CHECK_THROW(lambert_w0(std::numeric_limits::quiet_NaN()), std::domain_error); // Would be NaN.