9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/unit_test.hpp>
14 using namespace Acts::Experimental;
23 std::invalid_argument);
29 std::invalid_argument);
35 std::vector<Acts::ActsScalar> reference = {0., 2., 4., 6., 8., 10.};
36 BOOST_CHECK(eq.bins() == 5
u);
38 BOOST_CHECK(eq.axisType == Acts::detail::AxisType::Equidistant);
39 BOOST_CHECK(eq.boundaryType == Acts::detail::AxisBoundaryType::Bound);
40 BOOST_CHECK_EQUAL_COLLECTIONS(eq.edges.begin(), eq.edges.end(),
41 reference.begin(), reference.end());
48 std::invalid_argument);
51 std::vector<Acts::ActsScalar> varEdges = {0., 12., 13., 15., 20.};
55 BOOST_CHECK(var.bins() == 4
u);
57 BOOST_CHECK(var.axisType == Acts::detail::AxisType::Variable);
58 BOOST_CHECK(var.boundaryType == Acts::detail::AxisBoundaryType::Bound);
59 BOOST_CHECK_EQUAL_COLLECTIONS(var.edges.begin(), var.edges.end(),
60 varEdges.begin(), varEdges.end());
63 BOOST_AUTO_TEST_SUITE_END()