// Copyright (c) 1999 Utrecht University (The Netherlands), // ETH Zurich (Switzerland), Freie Universitaet Berlin (Germany), // INRIA Sophia-Antipolis (France), Martin-Luther-University Halle-Wittenberg // (Germany), Max-Planck-Institute Saarbruecken (Germany), RISC Linz (Austria), // and Tel-Aviv University (Israel). All rights reserved. // // This file is part of CGAL (www.cgal.org); you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public License as // published by the Free Software Foundation; version 2.1 of the License. // See the file LICENSE.LGPL distributed with CGAL. // // 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) : Stefan Schirra #include #include #include #include #include #include #include #include #include #include #include #ifdef CGAL_USE_GMP # include #endif #ifdef CGAL_USE_LEDA # include #endif int main() { std::cout << "Testing miscellaneous" << std::endl; typedef CGAL::Homogeneous H_Cls; typedef CGAL::Simple_homogeneous SH_Cls; typedef CGAL::Cartesian C_Cls; typedef CGAL::Simple_cartesian SC_Cls; _test_cls_object( C_Cls() ); _test_cls_object( H_Cls() ); _test_cls_object( SC_Cls() ); _test_cls_object( SH_Cls() ); _test_cls_quotient( int(1) ); _test_cls_quotient( double(1.0) ); _test_cls_quotient( long(1) ); _test_cls_quotient( short(1) ); _test_fct_determinant( Precise_integer(1) ); _test_fct_point_conversion( int(1) ); _test_fct_point_conversion( double(1.0) ); #ifdef CGAL_USE_GMP _test_cls_quotient( CGAL::Gmpz(1) ); _test_fct_point_conversion( CGAL::Gmpz(1) ); #endif #ifdef CGAL_USE_LEDA _test_cls_quotient( leda_integer(1) ); _test_fct_point_conversion( leda_integer(1) ); #endif _test_cls_quotient( CGAL::MP_Float(1) ); _test_fct_point_conversion( CGAL::MP_Float(1) ); return 0; }