[geos-commits] [SCM] GEOS branch main updated. f24c181ec306d8f92429d553a316653e2760e2d4
git at osgeo.org
git at osgeo.org
Mon Oct 4 10:39:06 PDT 2021
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, main has been updated
via f24c181ec306d8f92429d553a316653e2760e2d4 (commit)
from 4c38944f8b5ef440398ba5f8db14b75489de5d68 (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 f24c181ec306d8f92429d553a316653e2760e2d4
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Mon Oct 4 10:39:02 2021 -0700
Do not test GEOSIsValid(NULL)
diff --git a/tests/unit/capi/GEOSisValidTest.cpp b/tests/unit/capi/GEOSisValidTest.cpp
index 1580adb..86dcac5 100644
--- a/tests/unit/capi/GEOSisValidTest.cpp
+++ b/tests/unit/capi/GEOSisValidTest.cpp
@@ -51,12 +51,12 @@ void object::test<3>()
}
GEOSGeometry* shell = GEOSGeom_createLinearRing(shell_seq);
- ensure(shell != nullptr);
+ ensure(shell == nullptr);
GEOSGeometry* polygon = GEOSGeom_createPolygon(shell, nullptr, 0);
- ensure(polygon != nullptr);
- char isvalid = GEOSisValid(polygon);
- ensure_equals(0, isvalid);
- GEOSGeom_destroy(polygon);
+ ensure(polygon == nullptr);
+ // char isvalid = GEOSisValid(polygon);
+ // ensure_equals(0, isvalid);
+ // GEOSGeom_destroy(polygon);
}
} // namespace tut
-----------------------------------------------------------------------
Summary of changes:
tests/unit/capi/GEOSisValidTest.cpp | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list