add test failing from issue 6374

This commit is contained in:
Sébastien Loriot 2022-03-03 11:08:23 +01:00
parent 0884955606
commit 4f640c5bd6
2 changed files with 12 additions and 2 deletions

View File

@ -79,8 +79,8 @@ int main(int argc, char** argv)
assert(ok);
std::cout << points.size() << " points and " << polygons.size() << " polygons" << std::endl;
if(argc == 0)
assert(points.size() == 434 && polygons.size() == 864);
if(argc == 1)
assert(points.size() == 4 && polygons.size() == 4);
points.clear();
polygons.clear();
@ -129,6 +129,16 @@ int main(int argc, char** argv)
further_tests();
// issue 6374
if(argc == 1)
{
points.clear();
polygons.clear();
bool ok = CGAL::IO::read_STL("data/binary-issue-6374.stl", points, polygons, CGAL::parameters::verbose(true));
assert(ok);
assert(points.size()==8 && polygons.size()==12);
}
std::cout << "Done!" << std::endl;
return EXIT_SUCCESS;
}