testing calls

This commit is contained in:
Pedro Machado Manhaes de Castro 2008-10-31 17:54:35 +00:00
parent 66f53a570b
commit 76d77f77f2
2 changed files with 13 additions and 0 deletions

View File

@ -2616,6 +2616,16 @@ void _test_extremal_points_construct(SK sk) {
}
template <class SK>
void _test_calls(SK sk) {
CGAL::Line_arc_3<SK> la =
SK().construct_line_arc_3_object()(CGAL::Point_3<SK>(1,1,1), CGAL::Point_3<SK>(1,2,1));
CGAL::Circular_arc_point_3<SK> cap = SK().construct_circular_max_vertex_3_object()(la);
cap = SK().construct_circular_min_vertex_3_object()(la);
cap = SK().construct_circular_source_vertex_3_object()(la);
cap = SK().construct_circular_target_vertex_3_object()(la);
}
template <class SK>
void _test_spherical_kernel_construct(SK sk)
{
@ -2631,5 +2641,6 @@ void _test_spherical_kernel_construct(SK sk)
_test_split_construct(sk);
_test_bounding_box_construct(sk);
_test_extremal_points_construct(sk);
_test_calls(sk);
std::cout << "All tests on construction are OK." << std::endl;
}

View File

@ -649,8 +649,10 @@ void _test_bounded_side(SK sk) {
CGAL::Bounded_side b = theBounded_side_3(s,cp);
if((x*x + y*y + z*z) < 25) {
assert(b == CGAL::ON_BOUNDED_SIDE);
assert(SK().has_on_bounded_side_3_object()(s,cp));
} else if((x*x + y*y + z*z) > 25) {
assert(b == CGAL::ON_UNBOUNDED_SIDE);
assert(SK().has_on_unbounded_side_3_object()(s,cp));
} else assert(b == CGAL::ON_BOUNDARY);
}
}