2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Merge pull request #443 from boostorg/jzmaddock-patch-1

Fix some CI test failures.
This commit is contained in:
jzmaddock
2020-10-14 13:02:51 +01:00
committed by GitHub

View File

@@ -56,8 +56,9 @@ void test_spots(RealType)
// Confirm mode is at least a local minimum
RealType mode = boost::math::mode(dist);
BOOST_TEST_CHECK(pdf(dist, mode) >= pdf(dist, mode - sqrt(eps)));
BOOST_TEST_CHECK(pdf(dist, mode) >= pdf(dist, mode + sqrt(eps)));
using std::sqrt;
BOOST_TEST_CHECK(pdf(dist, mode) >= pdf(dist, RealType(mode - sqrt(eps))));
BOOST_TEST_CHECK(pdf(dist, mode) >= pdf(dist, RealType(mode + sqrt(eps))));
// Test the moments - each one integrates the entire distribution
quadrature::exp_sinh<RealType> integrator;