File indexing completed on 2025-10-19 07:59:11
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 using namespace Acts;
0018
0019 namespace ActsTests {
0020
0021 BOOST_AUTO_TEST_SUITE(SurfacesSuite)
0022
0023 BOOST_AUTO_TEST_CASE(InfiniteBoundsConstruction) {
0024 InfiniteBounds u;
0025 BOOST_CHECK_EQUAL(u.type(), SurfaceBounds::eBoundless);
0026
0027
0028 InfiniteBounds v(u);
0029 BOOST_CHECK_EQUAL(v.type(), SurfaceBounds::eBoundless);
0030 }
0031
0032 BOOST_AUTO_TEST_CASE(InfiniteBoundsProperties) {
0033 InfiniteBounds infiniteBoundsObject;
0034
0035 BOOST_CHECK_EQUAL(infiniteBoundsObject.type(), SurfaceBounds::eBoundless);
0036
0037
0038 const Vector2 anyVector{0., 1.};
0039 const BoundaryTolerance anyTolerance = BoundaryTolerance::None();
0040 BOOST_CHECK(infiniteBoundsObject.inside(anyVector, anyTolerance));
0041
0042
0043 boost::test_tools::output_test_stream dumpOutput;
0044 infiniteBoundsObject.toStream(dumpOutput);
0045 BOOST_CHECK(
0046 dumpOutput.is_equal("Acts::InfiniteBounds ... boundless surface\n"));
0047 }
0048
0049 BOOST_AUTO_TEST_SUITE_END()
0050
0051 }