Skip to content

Commit bc97599

Browse files
committed
Correct bessel_J test case.
1 parent 7431f81 commit bc97599

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test_bessel_j.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,8 @@ void test_bessel(T, const char* name)
274274
//
275275
// special cases for code coverage:
276276
//
277-
BOOST_CHECK_EQUAL(boost::math::sph_bessel(200, T(0.5)), T(3.070403008048099934928128420285169174541102108657574230431e-497L));
277+
T tolerance = boost::math::tools::epsilon<T>() * 200;
278+
BOOST_CHECK_CLOSE_FRACTION(boost::math::sph_bessel(200, T(0.5)), T(3.070403008048099934928128420285169174541102108657574230431e-497L), tolerance);
278279
BOOST_MATH_CHECK_THROW(boost::math::sph_bessel(2, T(-2.0)), std::domain_error);
279280
}
280281

0 commit comments

Comments
 (0)