[geos-commits] [SCM] GEOS branch master updated. c5f33f91a2eb631e3419a91f4f02076babacf00b
git at osgeo.org
git at osgeo.org
Tue Aug 25 08:16:33 PDT 2020
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".
The branch, master has been updated
via c5f33f91a2eb631e3419a91f4f02076babacf00b (commit)
from 2e4a7562f31f3663e0488044d0550da077ad66d9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c5f33f91a2eb631e3419a91f4f02076babacf00b
Author: Sandro Santilli <strk at kbt.io>
Date: Tue Aug 25 17:15:38 2020 +0200
Add another test for GEOSIntersectionPrec
diff --git a/tests/unit/capi/GEOSIntersectionPrecTest.cpp b/tests/unit/capi/GEOSIntersectionPrecTest.cpp
index 7c733bb..1376eb8 100644
--- a/tests/unit/capi/GEOSIntersectionPrecTest.cpp
+++ b/tests/unit/capi/GEOSIntersectionPrecTest.cpp
@@ -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
-----------------------------------------------------------------------
Summary of changes:
tests/unit/capi/GEOSIntersectionPrecTest.cpp | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list