also test leda if it is available

This commit is contained in:
Andreas Fabri 2013-03-22 16:41:54 +01:00
parent e370c5eaa5
commit 5cc398f7fe
2 changed files with 11 additions and 15 deletions

View File

@ -678,10 +678,11 @@ int main()
std::cout << std::endl << "Testing with Simple_cartesian<double>..." << std::endl ; std::cout << std::endl << "Testing with Simple_cartesian<double>..." << std::endl ;
b &= test_kernel<CGAL::Simple_cartesian<double> >(true); b &= test_kernel<CGAL::Simple_cartesian<double> >(true);
#ifdef CGAL_USE_GMP
std::cout << std::endl << "Testing with Simple_cartesian<Gmpq>..." << std::endl ; std::cout << std::endl << "Testing with Simple_cartesian<Gmpq>..." << std::endl ;
b &= test_kernel<CGAL::Simple_cartesian<CGAL::Gmpq> >(true); b &= test_kernel<CGAL::Simple_cartesian<CGAL::Gmpq> >(true);
#endif
std::cout << std::endl << "Testing with Cartesian<float>..." << std::endl ; std::cout << std::endl << "Testing with Cartesian<float>..." << std::endl ;
b &= test_kernel<CGAL::Cartesian<float> >(false); b &= test_kernel<CGAL::Cartesian<float> >(false);

View File

@ -1,18 +1,13 @@
#include <CGAL/Cartesian.h> #include <CGAL/Cartesian.h>
#ifdef CGAL_USE_GMP #include <CGAL/Arithmetic_kernel.h>
#include <CGAL/Gmpq.h>
typedef CGAL::Gmpq NT;
#else
#include <CGAL/MP_Float.h>
#include <CGAL/Quotient.h>
typedef CGAL::Quotient<CGAL::MP_Float> NT;
#endif
typedef CGAL::Cartesian<NT> Kernel; // leda_rational, or Gmpq, or Quotient<MP_float>
typedef Kernel::Triangle_3 Triangle; typedef CGAL::Arithmetic_kernel::Rational NT;
typedef Kernel::Point_3 Point; typedef CGAL::Cartesian<NT> Kernel;
typedef Kernel::Segment_3 Segment; typedef Kernel::Triangle_3 Triangle;
typedef std::vector<Point> Polygon2; typedef Kernel::Point_3 Point;
typedef Kernel::Segment_3 Segment;
typedef std::vector<Point> Polygon2;
void test_coplanar_triangles(){ void test_coplanar_triangles(){
CGAL::Object obj; CGAL::Object obj;