Skip to content

Commit

Permalink
Merge branch 'master' of https://git.osgeo.org/gitea/geos/geos
Browse files Browse the repository at this point in the history
  • Loading branch information
pramsey committed Aug 25, 2020
2 parents aac987d + c5f33f9 commit c3a65c9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/unit/capi/GEOSIntersectionPrecTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,5 +211,21 @@ void object::test<7>
ensure_equals(toWKT(geom3_), std::string("POINT (10 0)"));
}

template<>
template<>
void object::test<8>
()
{
geom1_ = GEOSGeomFromWKT("LINESTRING(0 0, 10 0)");
geom2_ = GEOSGeomFromWKT("LINESTRING(9 0, 12 0, 12 20, 4 0, 2 0, 2 10, 0 10, 0 -10)");

ensure(nullptr != geom1_);
ensure(nullptr != geom2_);

geom3_ = GEOSIntersectionPrec(geom1_, geom2_, 2);
ensure(nullptr != geom3_);
ensure_equals(toWKT(geom3_), std::string("GEOMETRYCOLLECTION (LINESTRING (2 0, 4 0), POINT (0 0), POINT (10 0))"));
}

} // namespace tut

0 comments on commit c3a65c9

Please sign in to comment.