[geos-commits] [SCM] GEOS branch master updated. f553315974d88d9407f6710ce6f3b66eb855139e
git at osgeo.org
git at osgeo.org
Mon Dec 21 12:28:35 PST 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 f553315974d88d9407f6710ce6f3b66eb855139e (commit)
from 6aa82e1d46f512172c648c5f00a4b5d8cf494f69 (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 f553315974d88d9407f6710ce6f3b66eb855139e
Author: Daniel Baston <dbaston at gmail.com>
Date: Mon Dec 21 15:28:29 2020 -0500
Add test for MakeValid of empty MultiPolygon
diff --git a/tests/unit/operation/valid/MakeValidTest.cpp b/tests/unit/operation/valid/MakeValidTest.cpp
index 53bc8ec..3de285a 100644
--- a/tests/unit/operation/valid/MakeValidTest.cpp
+++ b/tests/unit/operation/valid/MakeValidTest.cpp
@@ -103,6 +103,19 @@ void object::test<1>
// }
+template<>
+template<>
+void object::test<3>()
+{
+ auto gf = GeometryFactory::getDefaultInstance();
+
+ auto mp = gf->createMultiPolygon();
+
+ MakeValid mv;
+ auto result = mv.build(mp.get());
+
+ ensure(result->isValid());
+}
} // namespace tut
-----------------------------------------------------------------------
Summary of changes:
tests/unit/operation/valid/MakeValidTest.cpp | 13 +++++++++++++
1 file changed, 13 insertions(+)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list