mirror of https://github.com/CGAL/cgal
Update tests
This commit is contained in:
parent
ca753748a3
commit
9d2107b3a8
|
|
@ -214,8 +214,8 @@ bool test_face_graph_wrapper()
|
|||
|
||||
CGAL::Face_graph_wrapper<SMesh> fgw1(m);
|
||||
std::vector<unsigned int> cells=fgw1.count_all_cells();
|
||||
if (cells[0]!=1487 || cells[1]!=4406 || cells[2]!=2918 ||
|
||||
fgw1.number_of_darts()!=8754)
|
||||
if (cells[0]!=1487 || cells[1]!=4406 || cells[2]!=2921 ||
|
||||
fgw1.number_of_darts()!=8812)
|
||||
{
|
||||
std::cout<<"Error: incorrect number of cells in test_face_graph_wrapper "
|
||||
<<"for Surface_mesh: "
|
||||
|
|
@ -235,8 +235,8 @@ bool test_face_graph_wrapper()
|
|||
in2>>p;
|
||||
CGAL::Face_graph_wrapper<Polyhedron> fgw2(p);
|
||||
cells=fgw2.count_all_cells();
|
||||
if (cells[0]!=1487 || cells[1]!=4406 || cells[2]!=2918 ||
|
||||
fgw2.number_of_darts()!=8754)
|
||||
if (cells[0]!=1487 || cells[1]!=4406 || cells[2]!=2921 ||
|
||||
fgw2.number_of_darts()!=8812)
|
||||
{
|
||||
std::cout<<"Error: incorrect number of cells in test_face_graph_wrapper "
|
||||
<<"for Polyhedron."
|
||||
|
|
|
|||
|
|
@ -169,8 +169,11 @@ int main()
|
|||
}
|
||||
|
||||
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;
|
||||
}
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
|
|
@ -167,8 +167,11 @@ int main()
|
|||
}
|
||||
|
||||
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;
|
||||
}
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
|
@ -108,8 +108,11 @@ int main()
|
|||
}
|
||||
|
||||
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;
|
||||
}
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
|
|
@ -101,8 +101,11 @@ int main()
|
|||
}
|
||||
|
||||
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;
|
||||
}
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
|
|
@ -113,8 +113,11 @@ int main()
|
|||
}
|
||||
|
||||
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;
|
||||
}
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
|
|
@ -76,8 +76,11 @@ int main()
|
|||
}
|
||||
|
||||
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;
|
||||
}
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
|
|
@ -130,8 +130,11 @@ int main(int argc, char** argv)
|
|||
}
|
||||
|
||||
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;
|
||||
}
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
|
|
@ -100,6 +100,9 @@ int main()
|
|||
|
||||
std::cout<<"tests_path_on_surface "<<(success?"OK":"failed") <<std::endl;
|
||||
|
||||
return success;
|
||||
if (!success)
|
||||
{ return EXIT_FAILURE; }
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
Loading…
Reference in New Issue