[geos-commits] [SCM] GEOS branch master updated. e7f97483c3db06cccd33362e0439ee3eaaaa4106
git at osgeo.org
git at osgeo.org
Sat Aug 8 12:52:35 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 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 at 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
More information about the geos-commits
mailing list