From a7edcfbd9aa97e962edb0d0623b928405e50208c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Mon, 27 Apr 2015 10:20:32 +0200 Subject: [PATCH] improve debug macro --- .../test/Surface_mesh_shortest_path/check.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Surface_mesh_shortest_path/test/Surface_mesh_shortest_path/check.h b/Surface_mesh_shortest_path/test/Surface_mesh_shortest_path/check.h index 4f9465423f7..f762f006782 100644 --- a/Surface_mesh_shortest_path/test/Surface_mesh_shortest_path/check.h +++ b/Surface_mesh_shortest_path/test/Surface_mesh_shortest_path/check.h @@ -8,5 +8,7 @@ void CHECK_EQUAL(const FT& a, const FT2& b) template void CHECK_CLOSE(const FT& a, const FT2& b, const FT& eps) { + if ( !(CGAL::abs(a-b) < eps) ) + std::cerr << "ERROR: difference (" << CGAL::abs(a-b) << ") is larger than eps (" << eps << ").\n"; assert(CGAL::abs(a-b) < eps); }