// TODO: Add licence // // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. // // $URL:$ // $Id: $ // // // Author(s) : // // ============================================================================ // TODO: The comments are all original EXACUS comments and aren't adapted. So // they may be wrong now. /*! \file NiX/Descartes.C This is the test file for the class NiX::Descartes. */ #include // include these traits here by 'hand', since not in release 3.3 #include #include #include #include #include #include template void test_descartes(){ typedef typename AT::Integer Integer; typedef typename AT::Rational Rational; { typedef typename CGAL::Polynomial_type_generator::Type Polynomial; typedef ::CGAL::internal::Descartes Isolator; // general test of concept RealRootIsolator CGAL::internal::test_real_root_isolator(); }{ typedef typename CGAL::Polynomial_type_generator::Type Polynomial; typedef ::CGAL::internal::Descartes Isolator; // general test of concept RealRootIsolator CGAL::internal::test_real_root_isolator(); } } int main(){ #ifdef CGAL_HAS_LEDA_ARITHMETIC_KERNEL std::cout << " TEST AK1 USING LEDA " << std::endl; test_descartes< CGAL::LEDA_arithmetic_kernel >(); #endif #ifdef CGAL_HAS_CORE_ARITHMETIC_KERNEL std::cout << " TEST AK1 USING CORE " << std::endl; test_descartes< CGAL::CORE_arithmetic_kernel >(); #endif #ifdef CGAL_HAS_GMP_ARITHMETIC_KERNEL std::cout << " TEST AK1 USING GMP " << std::endl; test_descartes< CGAL::GMP_arithmetic_kernel >(); #endif return EXIT_SUCCESS; } // EOF