diff --git a/test/test_heuman_lambda.hpp b/test/test_heuman_lambda.hpp index 23720b2d0..cdcbbba51 100644 --- a/test/test_heuman_lambda.hpp +++ b/test/test_heuman_lambda.hpp @@ -71,5 +71,12 @@ void test_spots(T, const char* type_name) #include "heuman_lambda_data.ipp" do_test_heuman_lambda(heuman_lambda_data, type_name, "Elliptic Integral Heuman Lambda: Random Data"); + + // + // Special cases for coverage: + // + BOOST_CHECK_THROW(boost::math::heuman_lambda(T(1.1), T(0.5)), std::domain_error); + BOOST_CHECK_THROW(boost::math::heuman_lambda(static_cast(1e-100), T(2.5)), std::domain_error); + }