mirror of https://github.com/CGAL/cgal
test all now
This commit is contained in:
parent
061c6684fb
commit
a4b0f88d41
|
|
@ -18,22 +18,9 @@
|
|||
#ifndef CGAL__TEST_FCT_LINE_2_H
|
||||
#define CGAL__TEST_FCT_LINE_2_H
|
||||
|
||||
// Accessory function testing functions that require sqrt().
|
||||
// Doesn't instantiate anything if RT doesn't support sqrt().
|
||||
template <class R>
|
||||
bool
|
||||
_test_fct_line_sqrt_2(const R&, CGAL::Tag_false)
|
||||
{
|
||||
// bool UNTESTED_STUFF_BECAUSE_SQRT_IS_NOT_SUPPORTED;
|
||||
std::cout << std::endl
|
||||
<< "NOTE : FT doesn't support sqrt(),"
|
||||
" hence some functions are not tested." << std::endl;
|
||||
return true;
|
||||
}
|
||||
|
||||
template <class R>
|
||||
bool
|
||||
_test_fct_line_sqrt_2(const R&, CGAL::Tag_true)
|
||||
_test_fct_line_sqrt_2(const R&)
|
||||
{
|
||||
typedef typename R::Point_2 Point_2;
|
||||
typedef typename R::Line_2 Line_2;
|
||||
|
|
@ -178,13 +165,9 @@ _test_fct_line_2(const R& )
|
|||
assert(bl1.oriented_side(p2) == CGAL::ON_POSITIVE_SIDE);
|
||||
assert( CGAL::parallel(bl1, bl2) );
|
||||
|
||||
// More tests, that require sqrt().
|
||||
{
|
||||
typedef ::CGAL::Algebraic_structure_traits<FT> AST;
|
||||
static const bool has_sqrt =
|
||||
! ::boost::is_same< ::CGAL::Null_functor, typename AST::Sqrt >::value;
|
||||
_test_fct_line_sqrt_2(R(), ::CGAL::Boolean_tag<has_sqrt>());
|
||||
}
|
||||
// More tests, that require sqrt() or use approx.
|
||||
_test_fct_line_sqrt_2(R());
|
||||
|
||||
std::cout << "done" << std::endl;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,22 +17,9 @@
|
|||
#ifndef CGAL__TEST_FCT_PLANE_3_H
|
||||
#define CGAL__TEST_FCT_PLANE_3_H
|
||||
|
||||
// Accessory function testing functions that require sqrt().
|
||||
// Doesn't instantiate anything if RT doesn't support sqrt().
|
||||
template <class R>
|
||||
bool
|
||||
_test_fct_plane_sqrt_3(const R&, CGAL::Tag_false)
|
||||
{
|
||||
// bool UNTESTED_STUFF_BECAUSE_SQRT_IS_NOT_SUPPORTED;
|
||||
std::cout << std::endl
|
||||
<< "NOTE : FT doesn't support sqrt(),"
|
||||
" hence some functions are not tested." << std::endl;
|
||||
return true;
|
||||
}
|
||||
|
||||
template <class R>
|
||||
bool
|
||||
_test_fct_plane_sqrt_3(const R&, CGAL::Tag_true)
|
||||
_test_fct_plane_sqrt_3(const R&)
|
||||
{
|
||||
typedef typename R::Point_3 Point_3;
|
||||
typedef typename R::Plane_3 Plane_3;
|
||||
|
|
@ -97,11 +84,8 @@ _test_fct_plane_3(const R& )
|
|||
assert( CGAL::parallel(h1, h2) );
|
||||
assert( ! CGAL::parallel(h1, h5) );
|
||||
|
||||
// More tests, that require sqrt().
|
||||
typedef ::CGAL::Algebraic_structure_traits<FT> AST;
|
||||
static const bool has_sqrt =
|
||||
! ::boost::is_same< ::CGAL::Null_functor, typename AST::Sqrt >::value;
|
||||
_test_fct_plane_sqrt_3(R(), ::CGAL::Boolean_tag<has_sqrt>());
|
||||
// More tests, that require sqrt() or use approx.
|
||||
_test_fct_plane_sqrt_3(R());
|
||||
|
||||
std::cout << "done" << std::endl;
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue