Commit Graph

63 Commits

Author SHA1 Message Date
Sébastien Loriot 72cda50a5e fix incorrect LGPL version tags 2017-11-12 10:17:52 +01:00
Sébastien Loriot 0698f79aff add SPDX identifier for files under the LGPL-3+ license 2017-11-12 10:17:50 +01:00
Andreas Fabri 82d72949af what did I do 2016-10-13 10:36:17 +02:00
Andreas Fabri 21209d97b2 CGAL_USE_TYPE() to avoid warnings 2016-10-13 10:19:10 +02:00
Laurent Rineau a8ff620f3f Fix the remaining warnings on my platform
That was mostly "unused locally defined typedefs".
2014-04-01 14:50:51 +02:00
Laurent Rineau afc7b8f777 Fix warnings (unused local typedef) 2014-04-01 14:49:49 +02:00
Laurent Rineau 972befcc01 Merge branch 'CGAL-fix_io_bad-lrineau'
Fix the uses of std::basic_ios::bad() across the whole CGAL code, and
use fail() instead.

Tested in CGAL-4.4-Ic-84.
2014-01-09 17:52:46 +01:00
Laurent Rineau 19ecf8e545 Trivial fix of a warning 2014-01-06 15:59:30 +01:00
Luis Peñaranda cad0a49f30 Revert "avoid more -Wall warnings in g++ 4.7"
This reverts commit ed04ff7c18. Basically,
I changed in the reverted commit the assert() by CGAL_assertion(), and
added some CGAL_assertion_code().
2014-01-03 10:53:46 -03:00
Luis Peñaranda 77da387fe5 Test correctly inexact coefficient types.
The algebraic structure tests are performed following the exactness of
the coefficient type (it was assumed before that the type was exact). If
it is inexact, the polynomial traits are not tested to avoid wrong
errors.
2014-01-01 11:40:24 -03:00
Luis Peñaranda 352b029aab fixed years-old bug in tests
The bug came from assuming that the bound type was exact. Now, the
algebraic structure of the bound type can be correctly tested.
2013-12-30 23:53:16 -03:00
Laurent Rineau 269ae1ca61 Fix the uses of std::basic_ios::bad(), and use fail() instead.
bad() implies fail() but std::basic_ios::operator! is actually equivalent
to std::basic_ios::fail(), not bad().

For example,
    std::ifstream is(argv[1]);
    if (is.bad()) {
is probably wrong because, in case the file does not exist, only the failbit it set,
and not the badbit.

Other example:
   double x;
   is >> x;
If the stream 'is' does not contains a string that can represent a double,
then failbit is set (and maybe the eofbit if the stream is actually too
short), but not the badbit.

bad() can be used, in case fail() returned true, to discriminate between a
I/O error and a logical error.

See:
  http://en.cppreference.com/w/cpp/io/basic_ios/operator_bool
  http://en.cppreference.com/w/cpp/io/ios_base/iostate
2013-12-12 16:13:40 +01:00
Luis Peñaranda ed04ff7c18 avoid more -Wall warnings in g++ 4.7 2013-11-23 01:12:25 -02:00
Luis Peñaranda dd5a60d1af avoid one more warning 2013-11-23 00:23:44 -02:00
Luis Peñaranda 7f47236d30 avoided some warnings with -Wunused-local-typedefs 2013-11-22 01:44:43 -02:00
Luis Peñaranda b9a3922f0f Revert "uncommented a test which did not pass in the past"
This reverts commit 3f08a80977.
2013-11-20 12:04:54 -02:00
Luis Peñaranda 3f08a80977 uncommented a test which did not pass in the past 2013-11-19 18:10:54 -02:00
Laurent Rineau 75067bd072 Fix several I/O issues with Apple-clang-3.2 and its libc++ 2013-10-11 16:12:02 +02:00
Sébastien Loriot 9fcf46e11a replace CGAL_[kernel/qpe/triangulation/]_assertion by assert in tests
this should be the case, following our guidelines.

using:
find */test/* -name '*.[hc]*' | xargs sed -i 's/CGAL_assertion/assert/g'
2013-03-21 10:50:55 +01:00
Andreas Fabri 4bbc6ddd39 static_casts, switching to size_t, comparing a pointer with NULL to avoid warnings 2013-02-15 09:27:15 +01:00
Andreas Fabri 28b5b64347 no need for a variable for the exception 2013-02-12 19:17:36 +01:00
Laurent Rineau 51ea960be6 Fix warnings about unused types or variables. 2013-02-08 16:50:02 +01:00
Sébastien Loriot 82b2ebc865 apply the cpp0x namespace renaming in all files 2012-12-19 11:33:17 +01:00
Eric Berberich 177fa5f3ed reduce running time
at some point we need to allow expensive tests
2012-09-27 21:47:48 +00:00
Eric Berberich 6fe1a41fa3 for approximation there were too few tests and some were not correct
Alex and I improved the tests for approximation of algebraic reals:
- more polynomials (with small and large constant and quadratic coefficient)
- added a root really close to zero
- test all roots of polynomial
- added many precisions (including exotic ones)
Known issue: RS kernel has problem with prec = 8
2012-09-21 14:07:30 +00:00
Eric Berberich 230919c8d6 remove compiler warnings in tests 2012-07-05 09:50:20 +00:00
Sébastien Loriot 91a5327fa8 change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
Guillaume Damiand a29c905ee0 Replace BOOST_STATIC_ASSERT by CGAL_static_assertion. 2011-08-31 14:30:07 +00:00
Eric Berberich f6b14f653c fixed accuracy issue for non-exact bound types 2011-04-13 15:38:57 +00:00
Michael Kerber f84868f7b1 Merged candidate package into trunk 2010-06-28 16:40:05 +00:00
Luis Peñaranda 3b4006f577 removed old test files and protected the rest from compiling when RS is not
present by means of #ifdef's
2010-03-31 12:52:26 +00:00
Luis Peñaranda 10e1624178 -added support for the new version of RS
-fixed some minor bugs
-now the kernel uses directly the extremely fast RS refinement function
-updated the generic kernel tests accordingly
2009-12-19 23:49:05 +00:00
Luis Peñaranda fde525e773 corrected constness, fixed minor bugs and added generic tests (it remains
to test the algebraic_1 explicit interoperability)
2009-12-15 14:18:22 +00:00
Luis Peñaranda 52a5f417d1 moved Algebraic_kernel_d to the trunk 2009-12-10 15:53:43 +00:00
Michael Hemmer aa4dcf9b6f moved Algebraic_kernel_d to experimental 2009-06-29 15:13:59 +00:00
Michael Hemmer d3a60789b8 fix names of functor_name_object member functions 2009-06-29 07:38:45 +00:00
Michael Kerber 9327968428 Uses Polynomial_type_generator and Polynomial-rebinds now 2008-09-23 14:26:13 +00:00
Michael Kerber 16d1dfd610 Added tests from Bitstream_descartes_bfs into Bitstream_descartes 2008-08-13 14:21:03 +00:00
Michael Kerber 828837247a Bitstream_descartes_bfs renamed to Bitstream_descartes, replaces Bitstream_descartes in Algebraic_kernel_d subfolder 2008-08-12 16:29:01 +00:00
Michael Hemmer 1360cb9e0e square_free_factorization -> square_free_factorize
----------
added Joachim von zur Gathen and J\"urgen Gerhard, 
Modern Computer Algebra, Cambridge University Press, 1999
2008-08-08 09:00:24 +00:00
Michael Hemmer d421bd8559 new interface for square_free_factorize 2008-07-23 07:59:08 +00:00
Michael Hemmer 530509bf76 moved functors for Algerbaic_real_1 from Algebraic_real_traits to Kernel
added construct_*_objects()+tests
2008-07-06 09:31:41 +00:00
Michael Kerber 991f64c18a Algebraic_curve_kernel_2 code is fully integrated into CGAL, first tests and demos are working 2008-06-26 12:16:20 +00:00
Michael Kerber edf68a0c40 Adapted AK_2 to new AlciX-Code 2008-04-24 07:31:17 +00:00
Michael Hemmer 17096628df added #include<vector> since used 2008-04-05 15:50:30 +00:00
Michael Hemmer 580a68180f mv Polynomial/ipower.h Algebraic_foundations/ipower.h
since it is a more general function used in several packages (from EXACUS)
2008-04-01 13:44:37 +00:00
Michael Hemmer e0b1a8a5d4 adaptation of changes in Polynomial package, i.e. namespace POLYNOMIAL -> CGALi 2008-03-31 13:34:18 +00:00
Michael Hemmer 45329f636c changes according to interval_support 2008-03-25 17:44:38 +00:00
Andreas Meyer 20315de571 * replaced CGAL_test_assert with ::assert, instead of CGAL_assertion
* removed include/Testsuite/assert.h
2008-03-19 13:45:36 +00:00
Pavel Emeliyanenko fed7c45b45 Curve_2 -> Curve_analysis_2 2008-01-24 11:40:16 +00:00