From e8f4d603faa3bc449e2dbfe9c4c4cf732d331295 Mon Sep 17 00:00:00 2001 From: Sylvain Pion Date: Sat, 5 Dec 1998 16:24:30 +0000 Subject: [PATCH] - Added "#define CGAL_IA_NO_EXCEPTION" - Which broke the spiral test: fixed using new overlap() member function. - Changed "cout << tmp_flag" to "cout << (int) tmp_flag", so that Sun'CC works. --- .../Interval_arithmetic/include/tst_generic.C | 44 ++++++++++--------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/Packages/Interval_arithmetic/test/Interval_arithmetic/include/tst_generic.C b/Packages/Interval_arithmetic/test/Interval_arithmetic/include/tst_generic.C index e8a99c00cb7..fcaf3afe265 100644 --- a/Packages/Interval_arithmetic/test/Interval_arithmetic/include/tst_generic.C +++ b/Packages/Interval_arithmetic/test/Interval_arithmetic/include/tst_generic.C @@ -7,6 +7,7 @@ // #define TESTED_TYPE CGAL_Interval_nt_advanced // For tst1.C // #define TESTED_TYPE CGAL_Interval_nt // For tst2.C +#define CGAL_IA_NO_EXCEPTION #define CGAL_IA_NO_WARNINGS #include @@ -24,20 +25,21 @@ int spiral_test() int i=0; IA x_i (1), y_i (0), x_ip1, y_ip1, length; - try { - while (++i < 500) - { - x_ip1 = x_i - y_i/sqrt((IA)i); - y_ip1 = y_i + x_i/sqrt((IA)i); - x_i = x_ip1; - y_i = y_ip1; - length = x_i*x_i + y_i*y_i; - DEBUG( cout << i << ": (" << x_i << " , " << y_i << ") : " << length << "\n";) - if ((x_i == 0) || (y_i == 0)) - break; - }; - } - catch (IA::unsafe_comparison) { } + // try { + while (++i < 500) + { + x_ip1 = x_i - y_i/sqrt((IA)i); + y_ip1 = y_i + x_i/sqrt((IA)i); + x_i = x_ip1; + y_i = y_ip1; + length = x_i*x_i + y_i*y_i; + DEBUG(cout<