[prev in list] [next in list] [prev in thread] [next in thread] 

List:       geos-commits
Subject:    [geos-commits] [SCM] GEOS branch master updated. c5f33f91a2eb631e3419a91f4f02076babacf00b
From:       git () osgeo ! org
Date:       2020-08-25 15:16:33
Message-ID: 20200825151636.6538B166521 () trac ! osgeo ! org
[Download RAW message or body]

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@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
_______________________________________________
geos-commits mailing list
geos-commits@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/geos-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic