9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/tools/output_test_stream.hpp>
11 #include <boost/test/unit_test.hpp>
32 using boost::test_tools::output_test_stream;
33 namespace utf = boost::unit_test;
43 BOOST_AUTO_TEST_SUITE(Layers)
52 double radius(0.5), halfz(10.);
53 auto pCylinder = std::make_shared<const CylinderBounds>(radius, halfz);
59 auto rBounds = std::make_shared<const RectangleBounds>(1., 1.);
61 const std::vector<std::shared_ptr<const Surface>> aSurfaces{
62 Surface::makeShared<PlaneSurface>(Transform3::Identity(),
rBounds),
63 Surface::makeShared<PlaneSurface>(Transform3::Identity(),
rBounds)};
65 auto pCylinderLayerFromSurfaces =
67 BOOST_CHECK_EQUAL(pCylinderLayerFromSurfaces->layerType(),
70 auto pCylinderLayerWithThickness =
74 std::unique_ptr<ApproachDescriptor> ad(
76 auto adPtr = ad.get();
78 pTransform, pCylinder,
nullptr, thickness,
std::move(ad));
79 BOOST_CHECK_EQUAL(pCylinderLayerWithApproachDescriptor->approachDescriptor(),
82 auto pCylinderLayerWithLayerType =
85 BOOST_CHECK_EQUAL(pCylinderLayerWithLayerType->layerType(),
93 double radius(0.5), halfz(10.);
94 auto pCylinder = std::make_shared<const CylinderBounds>(radius, halfz);
98 BOOST_CHECK_EQUAL(pCylinderLayer->surfaceRepresentation().name(),
102 BOOST_AUTO_TEST_SUITE_END()