+template <typename Geometry1, typename Geometry2, typename MultiLineString>
+inline void check_result(Geometry1 const& geometry1,
+ Geometry2 const& geometry2,
+ MultiLineString const& mls_output,
+ MultiLineString const& mls_union,
+ std::string const& case_id,
+ double tolerance)
+{
+ BOOST_CHECK_MESSAGE( equals::apply(mls_union, mls_output, tolerance),
+ "case id: " << case_id
+ << ", union L/L: " << bg::wkt(geometry1)
+ << " " << bg::wkt(geometry2)
+ << " -> Expected: " << bg::wkt(mls_union)
+ << " computed: " << bg::wkt(mls_output) );
+}
+