cgal/Kernel_23/test/Kernel_23
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
..
include/CGAL Fix the uses of std::basic_ios::bad(), and use fail() instead. 2013-12-12 16:13:40 +01:00
Cartesian.cpp Add a file that tests nested types required by the Kernel comcept (for now RT) 2013-01-31 14:47:03 +01:00
Dimension.cpp
Filtered_cartesian.cpp change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
Filtered_homogeneous.cpp change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
Homogeneous.cpp change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
Kernel_checker.cpp
Lazy_kernel.cpp change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
Simple_cartesian.cpp change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
Simple_homogeneous.cpp change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
overload_bug.cpp add a small example showing the overload problem when result_type 2011-06-30 17:19:48 +00:00
test_Projection_traits_xy_3_Intersect_2.cpp Merge /branches/features/Triangulation_2_UseTraitsInHierarchy-GF/Kernel_23 2012-06-29 16:27:25 +00:00
test_all_linear_intersections_v1.cpp add a test checking all linear intersection computations with API v1 and v2 2013-09-26 17:30:43 +02:00
test_all_linear_intersections_v2.cpp add a test checking all linear intersection computations with API v1 and v2 2013-09-26 17:30:43 +02:00
test_bbox.cpp add global functions bbox_2 and bbox_3 in the Kernel 2013-05-31 19:44:21 +02:00
test_kernel__.cpp change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
test_result_of.cpp * fixed include issue 2011-12-15 15:45:39 +00:00