]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/math/test/gauss_quadrature_test.cpp
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / libs / math / test / gauss_quadrature_test.cpp
index 61145db16cfa598c612432af3b3fe7c80b23201c..b8b7f3b72887d16522af10da9f09ccad429f9a66 100644 (file)
@@ -259,6 +259,10 @@ void test_linear()
     Real Q = gauss<Real, Points>::integrate(f, (Real) 0, (Real) 1, &L1);
     BOOST_CHECK_CLOSE_FRACTION(Q, 9.5, tol);
     BOOST_CHECK_CLOSE_FRACTION(L1, 9.5, tol);
+    Q = gauss<Real, Points>::integrate(f, (Real) 0, (Real) 0, &L1);
+    BOOST_CHECK_CLOSE(Q, 0, tol);
+    Q = gauss<Real, Points>::integrate(f, (Real) 1, (Real) 0, &L1);
+    BOOST_CHECK_CLOSE_FRACTION(Q, -9.5, tol);
 }
 
 template<class Real, unsigned Points>