9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/tools/output_test_stream.hpp>
11 #include <boost/test/unit_test.hpp>
31 using boost::test_tools::output_test_stream;
32 namespace utf = boost::unit_test;
42 BOOST_AUTO_TEST_SUITE(Layers)
51 const double minRad(5.), maxRad(10.);
52 auto pDisc = std::make_shared<const RadialBounds>(minRad, maxRad);
57 auto rBounds = std::make_shared<const RectangleBounds>(1., 1.);
59 const std::vector<std::shared_ptr<const Surface>> aSurfaces{
60 Surface::makeShared<PlaneSurface>(Transform3::Identity(),
rBounds),
61 Surface::makeShared<PlaneSurface>(Transform3::Identity(),
rBounds)};
63 auto pDiscLayerFromSurfaces =
67 auto pDiscLayerWithThickness =
69 BOOST_CHECK_EQUAL(pDiscLayerWithThickness->thickness(),
thickness);
71 std::unique_ptr<ApproachDescriptor> ad(
73 auto adPtr = ad.get();
74 auto pDiscLayerWithApproachDescriptor =
76 BOOST_CHECK_EQUAL(pDiscLayerWithApproachDescriptor->approachDescriptor(),
88 const double minRad(5.), maxRad(10.);
89 auto pDisc = std::make_shared<const RadialBounds>(minRad, maxRad);
92 BOOST_CHECK_EQUAL(pDiscLayer->surfaceRepresentation().name(),
96 BOOST_AUTO_TEST_SUITE_END()