From 3c42d2d52d5df22268dfe58c13f66bc6ef86c423 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Mon, 13 Jan 2025 12:10:46 -0800 Subject: [PATCH] Add test case for GH-1225 --- .../construct/MaximumInscribedCircleTest.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/unit/algorithm/construct/MaximumInscribedCircleTest.cpp b/tests/unit/algorithm/construct/MaximumInscribedCircleTest.cpp index 9818b8b92..dcab53cc8 100644 --- a/tests/unit/algorithm/construct/MaximumInscribedCircleTest.cpp +++ b/tests/unit/algorithm/construct/MaximumInscribedCircleTest.cpp @@ -249,5 +249,17 @@ void object::test<10> 0.01 ); } +// +// https://github.com/libgeos/geos/pull/1225 +// +template<> +template<> +void object::test<11> +() +{ + checkCircle("POLYGON((0 -10,-7.07107 -7.07107,-10 0,-7.07107 7.07107,0 10,7.07107 7.07107,10 0,7.07107 -7.07107,0 -10))", + 0.1, 0, 0, 9.2387); +} + } // namespace tut