File indexing completed on 2025-01-18 09:12:51
0001
0002
0003
0004
0005
0006
0007
0008
0009 #include <boost/test/tools/output_test_stream.hpp>
0010 #include <boost/test/unit_test.hpp>
0011
0012 #include "Acts/Definitions/Algebra.hpp"
0013 #include "Acts/Surfaces/BoundaryTolerance.hpp"
0014 #include "Acts/Surfaces/InfiniteBounds.hpp"
0015 #include "Acts/Surfaces/SurfaceBounds.hpp"
0016
0017 namespace Acts::Test {
0018
0019 BOOST_AUTO_TEST_SUITE(Surfaces)
0020
0021 BOOST_AUTO_TEST_CASE(InfiniteBoundsConstruction) {
0022 InfiniteBounds u;
0023 BOOST_CHECK_EQUAL(u.type(), SurfaceBounds::eBoundless);
0024
0025
0026 InfiniteBounds v(u);
0027 BOOST_CHECK_EQUAL(v.type(), SurfaceBounds::eBoundless);
0028 }
0029
0030 BOOST_AUTO_TEST_CASE(InfiniteBoundsProperties) {
0031 InfiniteBounds infiniteBoundsObject;
0032
0033 BOOST_CHECK_EQUAL(infiniteBoundsObject.type(), SurfaceBounds::eBoundless);
0034
0035
0036 const Vector2 anyVector{0., 1.};
0037 const BoundaryTolerance anyTolerance = BoundaryTolerance::None();
0038 BOOST_CHECK(infiniteBoundsObject.inside(anyVector, anyTolerance));
0039
0040
0041 boost::test_tools::output_test_stream dumpOutput;
0042 infiniteBoundsObject.toStream(dumpOutput);
0043 BOOST_CHECK(
0044 dumpOutput.is_equal("Acts::InfiniteBounds ... boundless surface\n"));
0045 }
0046
0047 BOOST_AUTO_TEST_SUITE_END()
0048
0049 }