Skip to content

Commit

Permalink
Add a test to guard against LEC bug GH-1003
Browse files Browse the repository at this point in the history
  • Loading branch information
pramsey committed Nov 30, 2023
1 parent 5933bbb commit 564e22f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/unit/algorithm/construct/LargestEmptyCircleTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,4 +326,17 @@ void object::test<15>
0.01, 4, 6, 3 );
}

// https://trac.osgeo.org/postgis/ticket/5626
template<>
template<>
void object::test<21>()
{
checkCircle(
"POINT(-11.1111111 40)", // input
"POLYGON((-71.0821 42.3036,-71.0821 42.3936,-71.0901 42.3036,-71.0821 42.3036))", // boundary
1, // test tolerance
-71.15, 42.34, 60.19588 ); // expected x, y, radius
}


} // namespace tut

0 comments on commit 564e22f

Please sign in to comment.