#include "test_Prefix.h"

#include <CGAL/boost/graph/helpers.h>

template<typename Mesh>
void test() {
  const std::string fname = "data/7_faces_triangle.off";
  Mesh m;
  if(!CGAL::read_off(fname, m)) {
    std::cout << "Error reading file: " << fname << std::endl;
  }

  assert(CGAL::is_valid_polygon_mesh(m));

  CGAL::clear(m);
  assert(num_vertices(m) == 0);
  assert(num_faces(m) == 0);
  assert(num_edges(m) == 0);
  assert(CGAL::is_valid_polygon_mesh(m));
}

int main()
{
  test<SM>();
  test<Polyhedron>();
  test<LCC>();
#if defined(CGAL_USE_OPENMESH)
  test<OMesh>();
#endif
  return 0;
}
