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 #include "../Surfaces/SurfaceStub.hpp"
34 using boost::test_tools::output_test_stream;
35 namespace utf = boost::unit_test;
45 BOOST_AUTO_TEST_SUITE(Layers)
50 std::vector<std::shared_ptr<const Surface>> someSurfaces{
51 Surface::makeShared<SurfaceStub>(), Surface::makeShared<SurfaceStub>()};
56 std::vector<std::shared_ptr<const Layer>> sharedLayers{
57 std::make_shared<LayerStub>(
nullptr),
58 std::make_shared<LayerStub>(
nullptr)};
60 {sharedLayers.at(0)->surfaceRepresentation().getSharedPtr(),
61 sharedLayers.at(1)->surfaceRepresentation().getSharedPtr()}));
73 double pLimit = std::numeric_limits<double>::max();
77 std::vector<std::shared_ptr<const Surface>> someSurfaces{
78 Surface::makeShared<SurfaceStub>(), Surface::makeShared<SurfaceStub>()};
82 BOOST_CHECK_NO_THROW(approachDescriptor.
registerLayer(aLayer));
86 double expectedIntersection = 20.0;
92 for (
size_t i = 0;
i < someSurfaces.size();
i++) {
94 someSurfaces.at(
i).get());
105 double pLimit = std::numeric_limits<double>::max();
110 Surface::makeShared<CylinderSurface>(Transform3::Identity(), 10., 20.);
112 std::vector<std::shared_ptr<const Surface>> approachSurface = {conCyl};
126 BOOST_AUTO_TEST_SUITE_END()