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

List:       geos-commits
Subject:    [geos-commits] [SCM] GEOS branch master updated. e7f97483c3db06cccd33362e0439ee3eaaaa4106
From:       git () osgeo ! org
Date:       2020-08-08 19:52:35
Message-ID: 20200808195235.BB75413CC4C () 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  e7f97483c3db06cccd33362e0439ee3eaaaa4106 (commit)
      from  8e340a77322445669bbffc5d6b9bf4d01b676a5a (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 e7f97483c3db06cccd33362e0439ee3eaaaa4106
Author: Paul Ramsey <pramsey@cleverelephant.ca>
Date:   Sat Aug 8 12:52:26 2020 -0700

    Normalize test results before comparing and use tolerance in comparison.

diff --git a/tests/unit/capi/GEOSIntersectionTest.cpp \
b/tests/unit/capi/GEOSIntersectionTest.cpp index 4cdf125..6638426 100644
--- a/tests/unit/capi/GEOSIntersectionTest.cpp
+++ b/tests/unit/capi/GEOSIntersectionTest.cpp
@@ -154,10 +154,13 @@ void object::test<4>
     ensure(nullptr != geom2_);
 
     geom3_ = GEOSIntersection(geom1_, geom2_);
+    GEOSNormalize(geom3_);
 
     ensure(nullptr != geom3_);
-    ensure_equals(toWKT(geom3_),
-                  std::string("GEOMETRYCOLLECTION (LINESTRING (1 2, 2 2), LINESTRING \
(2 1, 1 1), POLYGON ((0.5 1, 1 2, 1 1, 0.5 1)), POLYGON ((9 2, 9.5 1, 2 1, 2 2, 9 \
2)))")); +
+    expected_ = GEOSGeomFromWKT("GEOMETRYCOLLECTION (LINESTRING (1 2, 2 2), \
LINESTRING (2 1, 1 1), POLYGON ((0.5 1, 1 2, 1 1, 0.5 1)), POLYGON ((9 2, 9.5 1, 2 1, \
2 2, 9 2)))"); +    GEOSNormalize(expected_);
+    ensure(GEOSEqualsExact(expected_, geom3_, 0.00001));
 }
 
 } // namespace tut

-----------------------------------------------------------------------

Summary of changes:
 tests/unit/capi/GEOSIntersectionTest.cpp | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)


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