mirror of https://github.com/CGAL/cgal
54 lines
1.3 KiB
C++
54 lines
1.3 KiB
C++
|
|
#include <CGAL/basic.h>
|
|
#include <CGAL/Arithmetic_kernel.h>
|
|
#include <CGAL/Interval_nt.h>
|
|
#include <CGAL/Test/_test_interval_traits.h>
|
|
|
|
|
|
int main(){
|
|
|
|
std::cerr << " Interval_nt test .." << std::flush;
|
|
typedef CGAL::Interval_nt<true> I;
|
|
CGAL::test_interval_traits<I>();
|
|
std::cerr << " done " << std::endl;
|
|
|
|
#ifdef CGAL_HAS_CORE_ARITHMETIC_KERNEL
|
|
{
|
|
std::cerr << " CORE test .." << std::flush;
|
|
typedef CGAL::CORE_arithmetic_kernel AK;
|
|
CGAL::test_interval_traits<AK::Bigfloat_interval>();
|
|
std::cerr << " done " << std::endl;
|
|
}
|
|
#else
|
|
std::cerr << " CORE test .. skipped " << std::endl;
|
|
#endif // CGAL_HAS_CORE_ARITHMETIC_KERNEL
|
|
|
|
|
|
#ifdef CGAL_HAS_GMP_ARITHMETIC_KERNEL
|
|
{
|
|
std::cerr << " GMP test .." << std::flush;
|
|
typedef CGAL::GMP_arithmetic_kernel AK;
|
|
CGAL::test_interval_traits<AK::Bigfloat_interval>();
|
|
std::cerr << " done " << std::endl;
|
|
}
|
|
#else
|
|
std::cerr << " GMP test .. skipped " << std::endl;
|
|
#endif // CGAL_HAS_GMP_ARITHMETIC_KERNEL
|
|
|
|
|
|
#ifdef CGAL_HAS_LEDA_ARITHMETIC_KERNEL
|
|
{
|
|
std::cerr << " LEDA test .." << std::flush;
|
|
typedef CGAL::LEDA_arithmetic_kernel AK;
|
|
CGAL::test_interval_traits<AK::Bigfloat_interval>();
|
|
std::cerr << " done " << std::endl;
|
|
}
|
|
#else
|
|
std::cerr << " LEDA test .. skipped " << std::endl;
|
|
#endif // CGAL_HAS_LEDA_ARITHMETIC_KERNEL
|
|
|
|
return 0;
|
|
}
|
|
|
|
|