9 #include <boost/test/unit_test.hpp>
28 auto cylinderBounds = std::make_shared<CylinderBounds>(3, 10);
30 auto cylinder = Surface::makeShared<CylinderSurface>(
nullptr, cylinderBounds);
32 Surface::makeShared<CylinderSurface>(
nullptr, cylinderBounds);
35 cov << 0.04, 0, 0, 0.1;
37 std::move(cov), -0.1, 0.45);
44 cylinder2, {}, std::move(cov), -0.1, 0.45);
50 auto cylinder = Surface::makeShared<CylinderSurface>(
nullptr, 3, 10);
53 cov << 0.04, 0, 0, 0.1;
55 std::move(cov), -0.1, 0.45);
63 cylinder, {}, std::move(cov3), -0.1, 0.45, 42);
70 auto cylinder = Surface::makeShared<CylinderSurface>(
nullptr, 3, 10);
73 cov << 0.04, 0, 0, 0.1;
75 std::move(cov), -0.1, 0.45);
80 BOOST_CHECK_EQUAL(&msl.referenceSurface(), cylinder.get());
83 BOOST_CHECK_EQUAL(msl, msl2);
86 cylinder, {}, std::move(cov), -0.1, 0.45);
89 BOOST_CHECK_NE(msl, msl3);
91 BOOST_CHECK_EQUAL(&*msl, &fm);
99 const auto& parFullConst = parFull;
100 const auto& covFullConst = covFull;
102 for (BoundVector::Index
dim = 1;
dim <= parFull.size(); ++
dim) {
104 BOOST_CHECK_EQUAL(param, parFull.head(
dim));
105 BOOST_CHECK_EQUAL(cov, covFull.topLeftCorner(
dim,
dim));
108 [&](
const auto& param,
const auto& cov) {
109 BOOST_CHECK_EQUAL(param, parFull.head(
dim));
110 BOOST_CHECK_EQUAL(cov, covFull.topLeftCorner(
dim,
dim));
113 [&](
const auto& param,
const auto& cov) {
114 BOOST_CHECK_EQUAL(param, parFullConst.head(
dim));
115 BOOST_CHECK_EQUAL(cov,
116 covFullConst.topLeftCorner(
dim,
dim));