Update tests

This commit is contained in:
Guillaume Damiand 2019-12-03 15:17:43 +01:00
parent ca753748a3
commit 9d2107b3a8
9 changed files with 44 additions and 20 deletions

View File

@ -214,8 +214,8 @@ bool test_face_graph_wrapper()
CGAL::Face_graph_wrapper<SMesh> fgw1(m); CGAL::Face_graph_wrapper<SMesh> fgw1(m);
std::vector<unsigned int> cells=fgw1.count_all_cells(); std::vector<unsigned int> cells=fgw1.count_all_cells();
if (cells[0]!=1487 || cells[1]!=4406 || cells[2]!=2918 || if (cells[0]!=1487 || cells[1]!=4406 || cells[2]!=2921 ||
fgw1.number_of_darts()!=8754) fgw1.number_of_darts()!=8812)
{ {
std::cout<<"Error: incorrect number of cells in test_face_graph_wrapper " std::cout<<"Error: incorrect number of cells in test_face_graph_wrapper "
<<"for Surface_mesh: " <<"for Surface_mesh: "
@ -235,8 +235,8 @@ bool test_face_graph_wrapper()
in2>>p; in2>>p;
CGAL::Face_graph_wrapper<Polyhedron> fgw2(p); CGAL::Face_graph_wrapper<Polyhedron> fgw2(p);
cells=fgw2.count_all_cells(); cells=fgw2.count_all_cells();
if (cells[0]!=1487 || cells[1]!=4406 || cells[2]!=2918 || if (cells[0]!=1487 || cells[1]!=4406 || cells[2]!=2921 ||
fgw2.number_of_darts()!=8754) fgw2.number_of_darts()!=8812)
{ {
std::cout<<"Error: incorrect number of cells in test_face_graph_wrapper " std::cout<<"Error: incorrect number of cells in test_face_graph_wrapper "
<<"for Polyhedron." <<"for Polyhedron."

View File

@ -169,8 +169,11 @@ int main()
} }
if (test_valid) if (test_valid)
{ std::cout<<"All tests are OK"<<std::endl; } {
std::cout<<"All tests are OK"<<std::endl;
return EXIT_SUCCESS;
}
return test_valid; return EXIT_FAILURE;
} }
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -167,8 +167,11 @@ int main()
} }
if (test_valid) if (test_valid)
{ std::cout<<"All tests are OK"<<std::endl; } {
std::cout<<"All tests are OK"<<std::endl;
return EXIT_SUCCESS;
}
return test_valid; return EXIT_FAILURE;
} }
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -108,8 +108,11 @@ int main()
} }
if (res) if (res)
{ std::cout<<"SUCCESS homotopy_big_cylinder; all tests ok."<<std::endl; } {
std::cout<<"SUCCESS homotopy_big_cylinder; all tests ok."<<std::endl;
return EXIT_SUCCESS;
}
return res; return EXIT_FAILURE;
} }
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -101,8 +101,11 @@ int main()
} }
if (res) if (res)
{ std::cout<<"SUCCESS homotopy_double_torus_with_holes; all tests ok."<<std::endl; } {
std::cout<<"SUCCESS homotopy_double_torus_with_holes; all tests ok."<<std::endl;
return EXIT_SUCCESS;
}
return res; return EXIT_FAILURE;
} }
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -113,8 +113,11 @@ int main()
} }
if (res) if (res)
{ std::cout<<"SUCCESS homotopy_rond_point_saucisse; all tests ok."<<std::endl; } {
std::cout<<"SUCCESS homotopy_rond_point_saucisse; all tests ok."<<std::endl;
return EXIT_SUCCESS;
}
return res; return EXIT_FAILURE;
} }
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -76,8 +76,11 @@ int main()
} }
if (res) if (res)
{ std::cout<<"SUCCESS homotopy_small_cylinder; all tests ok."<<std::endl; } {
std::cout<<"SUCCESS homotopy_small_cylinder; all tests ok."<<std::endl;
return EXIT_SUCCESS;
}
return res; return EXIT_FAILURE;
} }
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -130,8 +130,11 @@ int main(int argc, char** argv)
} }
if (res) if (res)
{ std::cout<<"test_homotopy_with_polygonal_schema ALL TESTS OK."<<std::endl; } {
std::cout<<"test_homotopy_with_polygonal_schema ALL TESTS OK."<<std::endl;
return EXIT_SUCCESS;
}
return res; return EXIT_FAILURE;
} }
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -100,6 +100,9 @@ int main()
std::cout<<"tests_path_on_surface "<<(success?"OK":"failed") <<std::endl; std::cout<<"tests_path_on_surface "<<(success?"OK":"failed") <<std::endl;
return success; if (!success)
{ return EXIT_FAILURE; }
return EXIT_SUCCESS;
} }
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////