Skip to content

Commit

Permalink
Add test for Trac libgeos#769
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaston committed Dec 13, 2022
1 parent 7134367 commit 6a5588c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/unit/triangulate/VoronoiTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,18 @@ void object::test<11>
runVoronoi(wkt2, expected2, 0, true);
}

// Robustness
// https://trac.osgeo.org/geos/ticket/769
template<>
template<>
void object::test<12>
()
{
const char* wkb = "01040000000700000001010000000f8b33e3d97742c038c453588d0423c001010000001171d6d1b45d42c06adc1693e78c22c001010000001c8b33e3d97742c062c453588d0423c00101000000afa5c71fda7742c04b93c61d8e0423c00101000000b0cddcb4b57942c026476887d7b122c00101000000e0678421dc7642c0f7736021e1fb22c00101000000e32fd565018d42c0c7ea1222167c22c0";
const char* expected = "01070000000700000001030000000100000006000000B5EED3F94DBC42C07FEF17D2E3BE21C083C782E8F67042C07FEF17D2E3BE21C01B8E1E20C77342C0081A51527C3D22C024A6D3C6BC9042C0B4B89DBBCEE322C0B5EED3F94DBC42C0328D5BABDB4F23C0B5EED3F94DBC42C07FEF17D2E3BE21C001030000000100000008000000B5EED3F94DBC42C0938EC16DC0C123C0B5EED3F94DBC42C0328D5BABDB4F23C024A6D3C6BC9042C0B4B89DBBCEE322C058723E09808842C061F41FEFD8E022C089AA93ED8D7942C09ADC10D431FC22C07F54F7A7C37742C039F77D71FB0423C0257EDE4F4F5142C0938EC16DC0C123C0B5EED3F94DBC42C0938EC16DC0C123C0010300000001000000070000003FB2D73D682E42C07FEF17D2E3BE21C03FB2D73D682E42C0EF02E944CD9B23C0C1681026B63B42C0F535EA64496D23C00CFA9663F66742C08140ABD7CECC22C01B8E1E20C77342C0081A51527C3D22C083C782E8F67042C07FEF17D2E3BE21C03FB2D73D682E42C07FEF17D2E3BE21C00103000000010000000500000024A6D3C6BC9042C0B4B89DBBCEE322C01B8E1E20C77342C0081A51527C3D22C00CFA9663F66742C08140ABD7CECC22C058723E09808842C061F41FEFD8E022C024A6D3C6BC9042C0B4B89DBBCEE322C0010300000001000000060000000CFA9663F66742C08140ABD7CECC22C0C1681026B63B42C0F535EA64496D23C0DF39DD8C877942C0127BCE7D3DFC22C089AA93ED8D7942C09ADC10D431FC22C058723E09808842C061F41FEFD8E022C00CFA9663F66742C08140ABD7CECC22C0010300000001000000070000003FB2D73D682E42C0938EC16DC0C123C0257EDE4F4F5142C0938EC16DC0C123C07F54F7A7C37742C039F77D71FB0423C0DF39DD8C877942C0127BCE7D3DFC22C0C1681026B63B42C0F535EA64496D23C03FB2D73D682E42C0EF02E944CD9B23C03FB2D73D682E42C0938EC16DC0C123C0010300000001000000040000007F54F7A7C37742C039F77D71FB0423C089AA93ED8D7942C09ADC10D431FC22C0DF39DD8C877942C0127BCE7D3DFC22C07F54F7A7C37742C039F77D71FB0423C0";

runVoronoi(wkb, expected, 0, false);
}


} // namespace tut

0 comments on commit 6a5588c

Please sign in to comment.