9 #include <boost/test/unit_test.hpp>
30 Surface::makeShared<CylinderSurface>(Transform3D::Identity(), 3, 10);
33 cov << 0.04, 0, 0, 0.1;
35 cylinder, {},
cov, -0.1, 0.45);
38 cylinder, {},
cov, {-0.1, 0.45});
44 covc << 0.04, 0, 0, 0.1;
46 cylinder, {}, std::move(covc), -0.1, 0.45);
52 const Surface* sfCopy = &mcCopy.referenceObject();
53 BOOST_CHECK_NE(sfCopy,
nullptr);
54 BOOST_CHECK_EQUAL(sfCopy, cylinder.get());
56 BOOST_CHECK_EQUAL(mc.
parameters(), mcCopy.parameters());
62 const Surface* sfAssigned = &mcAssigned.referenceObject();
63 BOOST_CHECK_NE(sfAssigned,
nullptr);
64 BOOST_CHECK_EQUAL(sfAssigned, cylinder.get());
66 BOOST_CHECK_EQUAL(mc.
parameters(), mcAssigned.parameters());
70 caMeasurements{std::move(mcCopy), std::move(mcAssigned)};
72 auto plane = Surface::makeShared<PlaneSurface>(
Vector3D(0., 0., 0.),
79 covpp << 0.01, 0., 0., 0.02;
81 plane, {}, std::move(covpp), 0.1, 0.2);
83 std::vector<FittableMeasurement<SourceLink>> measurements{
84 std::move(mc), std::move(mp), std::move(mpp)};