9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/tools/output_test_stream.hpp>
11 #include <boost/test/unit_test.hpp>
22 using boost::test_tools::output_test_stream;
23 namespace utf = boost::unit_test;
33 BOOST_AUTO_TEST_SUITE(Layers)
38 std::shared_ptr<const Surface> pSurface = Surface::makeShared<SurfaceStub>();
43 auto pSurface2 = Surface::makeShared<SurfaceStub>();
44 auto pThickNavigationLayer =
52 std::shared_ptr<const Surface> pSurface = Surface::makeShared<SurfaceStub>();
53 auto rawSurfacePtr = pSurface.get();
54 auto pNavigationLayer =
59 BOOST_CHECK_EQUAL(pNavigationLayer->binningPosition(
tgContext, b),
origin);
61 BOOST_CHECK_EQUAL(rawSurfacePtr,
62 &(pNavigationLayer->surfaceRepresentation()));
66 Vector3D crazyPosition{1000., 10000., std::nan(
"")};
67 BOOST_CHECK(!pNavigationLayer->isOnLayer(
tgContext, crazyPosition,
true));
69 BOOST_CHECK(!pNavigationLayer->resolve(
true,
true,
true));
72 BOOST_AUTO_TEST_SUITE_END()