// Boost.Geometry (aka GGL, Generic Geometry Library) test file // // Copyright Barend Gehrels 2007-2009, Geodan, Amsterdam, the Netherlands // Use, modification and distribution is subject to the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_GEOMETRY_TEST_COMBINE_HPP #define BOOST_GEOMETRY_TEST_COMBINE_HPP #include #include #include #include #include #include template void test_combine(Box& box, std::string const& wkt, std::string const& expected) { Geometry geometry; boost::geometry::read_wkt(wkt, geometry); boost::geometry::combine(box, geometry); std::ostringstream out; out << boost::geometry::dsv(box, ",", "(", ")", ",", "", ""); BOOST_CHECK_EQUAL(out.str(), expected); } template void test_combine_other_strategy(Box& box, std::string const& wkt, std::string const& expected) { Geometry geometry; boost::geometry::read_wkt(wkt, geometry); boost::geometry::combine(box, geometry); std::ostringstream out; out << boost::geometry::dsv(box, ",", "(", ")", ",", "", ""); BOOST_CHECK_EQUAL(out.str(), expected); } #endif