9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/tools/output_test_stream.hpp>
11 #include <boost/test/unit_test.hpp>
24 #include "../Surfaces/SurfaceStub.hpp"
26 using boost::test_tools::output_test_stream;
27 namespace utf = boost::unit_test;
37 BOOST_AUTO_TEST_SUITE(Layers)
42 std::shared_ptr<const Surface>
pSurface = Surface::makeShared<SurfaceStub>();
47 auto pSurface2 = Surface::makeShared<SurfaceStub>();
48 auto pThickNavigationLayer =
56 std::shared_ptr<const Surface>
pSurface = Surface::makeShared<SurfaceStub>();
57 auto rawSurfacePtr = pSurface.get();
58 auto pNavigationLayer =
65 BOOST_CHECK_EQUAL(rawSurfacePtr,
66 &(pNavigationLayer->surfaceRepresentation()));
70 Vector3 crazyPosition{1000., 10000., std::nan(
"")};
72 BOOST_CHECK(pNavigationLayer->isOnLayer(
tgContext, crazyPosition,
true));
74 BOOST_CHECK(!pNavigationLayer->resolve(
true,
true,
true));
77 BOOST_AUTO_TEST_SUITE_END()