9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/tools/output_test_stream.hpp>
11 #include <boost/test/unit_test.hpp>
32 #if defined(__GNUC__) && __GNUC__ == 13 && !defined(__clang__)
33 #pragma GCC diagnostic push
34 #pragma GCC diagnostic ignored "-Warray-bounds"
35 #pragma GCC diagnostic ignored "-Wstringop-overflow"
38 #if defined(__GNUC__) && __GNUC__ == 13 && !defined(__clang__)
39 #pragma GCC diagnostic pop
46 std::vector<double>
values()
const override {
54 std::ostream&
toStream(std::ostream& sl)
const final {
55 sl <<
"SurfaceBoundsStub";
64 BOOST_AUTO_TEST_SUITE(Surfaces)
74 std::vector<double> reference{0, 1, 2, 3, 4};
75 const auto& boundValues = surface.
values();
76 BOOST_CHECK_EQUAL_COLLECTIONS(reference.cbegin(), reference.cend(),
77 boundValues.cbegin(), boundValues.cend());
84 BOOST_CHECK_EQUAL(surface, copiedSurface);
85 BOOST_CHECK_NE(surface, differentSurface);
88 BOOST_CHECK_EQUAL(surface, assignedSurface);
89 const auto& surfaceboundValues = surface.
values();
90 const auto& assignedboundValues = assignedSurface.
values();
91 BOOST_CHECK_EQUAL_COLLECTIONS(
92 surfaceboundValues.cbegin(), surfaceboundValues.cend(),
93 assignedboundValues.cbegin(), assignedboundValues.cend());
95 BOOST_AUTO_TEST_SUITE_END()