Skip to content

Commit

Permalink
Add test for GH-821
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaston committed Feb 28, 2023
1 parent b6fe0de commit 362cb9f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/unit/capi/GEOSMaximumInscribedCircleTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,22 @@ void object::test<2>
}


// Crash with Inf coords
// https://github.com/libgeos/geos/issues/821
template<>
template<>
void object::test<3>
()
{
std::string wkb("0106000020E61000000100000001030000000100000005000000000000000000F07F000000000000F07F000000000000F07F000000000000F07F000000000000F07F000000000000F07F000000000000F07F000000000000F07F000000000000F07F000000000000F07F");
geom1_ = GEOSGeomFromHEX_buf(reinterpret_cast<const unsigned char*>(wkb.c_str()), wkb.size());

result_ = GEOSMaximumInscribedCircle(geom1_, 1);

// no crash
}



} // namespace tut

0 comments on commit 362cb9f

Please sign in to comment.