mirror of https://github.com/CGAL/cgal
Make functions private. Put the testsuite in a class and declare it friend
This commit is contained in:
parent
5d05e84210
commit
b1c663c9f8
|
|
@ -1,3 +1,5 @@
|
||||||
|
#define CGAL_TESTSUITE
|
||||||
|
|
||||||
#include <CGAL/Simple_cartesian.h>
|
#include <CGAL/Simple_cartesian.h>
|
||||||
#include <CGAL/Surface_mesh.h>
|
#include <CGAL/Surface_mesh.h>
|
||||||
#include <CGAL/Polyhedron_3.h>
|
#include <CGAL/Polyhedron_3.h>
|
||||||
|
|
@ -30,6 +32,8 @@ typedef CGAL::Heat_method_3::Heat_method_3<Idt,Kernel, Idt::Vertex_distance_map>
|
||||||
typedef CGAL::Heat_method_3::Heat_method_Eigen_traits_3::SparseMatrix SparseMatrix;
|
typedef CGAL::Heat_method_3::Heat_method_Eigen_traits_3::SparseMatrix SparseMatrix;
|
||||||
|
|
||||||
|
|
||||||
|
struct Heat_method_3_private_tests {
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
void source_set_tests(Heat_method hm, const Idt& sm)
|
void source_set_tests(Heat_method hm, const Idt& sm)
|
||||||
{
|
{
|
||||||
|
|
@ -37,7 +41,6 @@ void source_set_tests(Heat_method hm, const Idt& sm)
|
||||||
hm.add_source(source);
|
hm.add_source(source);
|
||||||
assert(*(hm.sources_begin()) == source);
|
assert(*(hm.sources_begin()) == source);
|
||||||
assert(hm.remove_source(source));
|
assert(hm.remove_source(source));
|
||||||
assert((hm.get_sources()).empty());
|
|
||||||
assert(hm.add_source(*(vertices(sm).first)));
|
assert(hm.add_source(*(vertices(sm).first)));
|
||||||
assert(*(hm.sources_begin()) == source);
|
assert(*(hm.sources_begin()) == source);
|
||||||
assert(hm.add_source(*(std::next(vertices(sm).first,3))));
|
assert(hm.add_source(*(std::next(vertices(sm).first,3))));
|
||||||
|
|
@ -171,3 +174,11 @@ int main(int argc, char*argv[])
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
int main(int argc, char*argv[])
|
||||||
|
{
|
||||||
|
Heat_method_3_private_tests tests;
|
||||||
|
return tests.main(argc,argv);
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -203,9 +203,9 @@ int main()
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
int main()
|
|
||||||
{
|
int main()
|
||||||
Heat_method_3_private_tests tests;
|
{
|
||||||
return tests.main();
|
Heat_method_3_private_tests tests;
|
||||||
|
return tests.main();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue