From 44484c0c1911d9b24073d49aeece69f0a69a4236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Pe=C3=B1aranda?= Date: Tue, 3 Oct 2006 11:43:13 +0000 Subject: [PATCH] Deleted old MPFI test files. --- .gitattributes | 4 -- .../test/MpfiInterval/test.C | 41 ------------------ .../test/MpfiInterval/test_gmp.C | 43 ------------------- .../test/MpfiInterval/test_int.C | 37 ---------------- .../test/MpfiInterval/test_mpfr.C | 41 ------------------ 5 files changed, 166 deletions(-) delete mode 100644 Algebraic_kernel_GBRS/test/MpfiInterval/test.C delete mode 100644 Algebraic_kernel_GBRS/test/MpfiInterval/test_gmp.C delete mode 100644 Algebraic_kernel_GBRS/test/MpfiInterval/test_int.C delete mode 100644 Algebraic_kernel_GBRS/test/MpfiInterval/test_mpfr.C diff --git a/.gitattributes b/.gitattributes index f12e8307d15..18d1d8d6af0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -11,10 +11,6 @@ Algebraic_kernel_GBRS/include/CGAL/MpfiInterval.C -text Algebraic_kernel_GBRS/include/CGAL/MpfiInterval.h -text Algebraic_kernel_GBRS/test/MpfiInterval/Mpfi.C -text Algebraic_kernel_GBRS/test/MpfiInterval/makefile -text -Algebraic_kernel_GBRS/test/MpfiInterval/test.C -text -Algebraic_kernel_GBRS/test/MpfiInterval/test_gmp.C -text -Algebraic_kernel_GBRS/test/MpfiInterval/test_int.C -text -Algebraic_kernel_GBRS/test/MpfiInterval/test_mpfr.C -text Alpha_shapes_2/demo/Alpha_shapes_2/data/m30f.jpg -text svneol=unset#image/jpeg Alpha_shapes_2/demo/Alpha_shapes_2/help/index.html svneol=native#text/html Alpha_shapes_2/doc_tex/Alpha_shapes_2/alphashape.eps -text svneol=unset#application/postscript diff --git a/Algebraic_kernel_GBRS/test/MpfiInterval/test.C b/Algebraic_kernel_GBRS/test/MpfiInterval/test.C deleted file mode 100644 index 49943616f8a..00000000000 --- a/Algebraic_kernel_GBRS/test/MpfiInterval/test.C +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include -#include - -void test_intervals () { - CGAL::MpfiInterval i1 (7); - CGAL::MpfiInterval i2 (9); - std::cout << "i1 = " << i1 << std::endl; - std::cout << "i2 = " << i2 << std::endl; - std::cout << "i1==i2: " << (i1==i2) << std::endl; - std::cout << "i1!=i2: " << (i1!=i2) << std::endl; - std::cout << "i1i2: " << (i1>i2) << std::endl; - std::cout << "i1<=i2: " << (i1<=i2) << std::endl; - std::cout << "i1>=i2: " << (i1>=i2) << std::endl; - i2 = 1 + i1; - std::cout << "(int)1 + i1 =\t" << i2 << std::endl; - std::cout << "1+i1 == 8? : " << (i2 == 8) << std::endl; - std::cout << "1+i1 != 8? : " << (i2 != 8) << std::endl; - std::cout << "1+i1 < 8? : " << (i2 < 8) << std::endl; - std::cout << "1+i1 > 8? : " << (i2 > 8) << std::endl; - std::cout << "1+i1 <= 8? : " << (i2 <= 8) << std::endl; - std::cout << "1+i1 >= 8? : " << (i2 >= 8) << std::endl; - mpfr_t x; - mpfr_init (x); - mpfr_set_si (x, 1, GMP_RNDN); - i2 = x + i1; - std::cout << "(mpfr_t)1 + i1 =\t" << i2 << std::endl; - mpz_t y; - mpz_init_set_si (y, 1); - i2 = y + i1; - std::cout << "(mpz_t)1 + i1 =\t" << i2 << std::endl; - CGAL::Gmpz z(1); - i2 = z + i1; - std::cout << "(Gmpz)1 + i1 =\t" << i2 << std::endl; -} - -int main () { - test_intervals (); - return 0; -} diff --git a/Algebraic_kernel_GBRS/test/MpfiInterval/test_gmp.C b/Algebraic_kernel_GBRS/test/MpfiInterval/test_gmp.C deleted file mode 100644 index 7f6876d2244..00000000000 --- a/Algebraic_kernel_GBRS/test/MpfiInterval/test_gmp.C +++ /dev/null @@ -1,43 +0,0 @@ -#include -#include -#include - -// you can use CGAL::Gmpz and CGAL::Gmpq as T -template -void test_class () { - T one (1); - T two (2); - - CGAL::MpfiInterval interval1 (1); - CGAL::MpfiInterval interval2 (0.5, 1.5); - - std::cout << "interval1 = " << interval1 << "\tis point: " << interval1.is_point () << std::endl; - std::cout << "interval2 = " << interval2 << "\tis point: " << interval2.is_point () << std::endl; - - std::cout << "interval1==one: " << (interval1 == one) << std::endl; - std::cout << "interval1!=one: " << (interval1 != one) << std::endl; - - std::cout << "interval1<=one: "; - try { std::cout << (interval1 <= one) << std::endl; - } catch (CGAL::comparison_overlap_exn &o) { std::cout << o.what () << std::endl; } - - std::cout << "interval1 (); - test_class (); - return 0; -} diff --git a/Algebraic_kernel_GBRS/test/MpfiInterval/test_int.C b/Algebraic_kernel_GBRS/test/MpfiInterval/test_int.C deleted file mode 100644 index d1b93b22382..00000000000 --- a/Algebraic_kernel_GBRS/test/MpfiInterval/test_int.C +++ /dev/null @@ -1,37 +0,0 @@ -#include - -void test_int () { - int one = 1; - int two = 2; - - CGAL::MpfiInterval interval1 (1); - CGAL::MpfiInterval interval2 (0.5, 1.5); - - std::cout << "interval1 = " << interval1 << "\tis point: " << interval1.is_point () << std::endl; - std::cout << "interval2 = " << interval2 << "\tis point: " << interval2.is_point () << std::endl; - - std::cout << "interval1==one: " << (interval1 == one) << std::endl; - - std::cout << "interval1<=one: "; - try { std::cout << (interval1 <= one) << std::endl; - } catch (CGAL::comparison_overlap_exn &o) { std::cout << o.what () << std::endl; } - - std::cout << "interval1 -#include - -void test_mpfr () { - mpfr_t one, two; - mpfr_inits (one, two, NULL); - mpfr_set_si (one, 1, GMP_RNDN); - mpfr_set_si (two, 2, GMP_RNDN); - - CGAL::MpfiInterval interval1 (1); - CGAL::MpfiInterval interval2 (0.5, 1.5); - - std::cout << "interval1 = " << interval1 << "\tis point: " << interval1.is_point () << std::endl; - std::cout << "interval2 = " << interval2 << "\tis point: " << interval2.is_point () << std::endl; - - std::cout << "interval1==one: " << (interval1 == one) << std::endl; - std::cout << "one==interval1: " << (one == interval1) << std::endl; - - std::cout << "interval1<=one: "; - try { std::cout << (interval1 <= one) << std::endl; - } catch (CGAL::comparison_overlap_exn &o) { std::cout << o.what () << std::endl; } - - std::cout << "interval1