From cb7ea5a75208e182664ce38348f3cfe86e95f04d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Mon, 15 Jan 2018 14:38:39 +0100 Subject: [PATCH] Added another test to regular neighbors --- .../include/CGAL/_test_regular_neighbors_2.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Interpolation/test/Interpolation/include/CGAL/_test_regular_neighbors_2.cpp b/Interpolation/test/Interpolation/include/CGAL/_test_regular_neighbors_2.cpp index f52d705d4dc..42ab0a2dc01 100644 --- a/Interpolation/test/Interpolation/include/CGAL/_test_regular_neighbors_2.cpp +++ b/Interpolation/test/Interpolation/include/CGAL/_test_regular_neighbors_2.cpp @@ -251,6 +251,13 @@ void _test_natural_neighbors_2_with_outputfunctor(Rt T) // intentional copy beca assert(is_equal); pt_coords.clear(); + // with an absurdly low weight to have a vertex that is hidden on insertion + wp = Weighted_point(Bare_point(0,0), -1000.); + pt_coordinate_result = CGAL::regular_neighbor_coordinates_2(T, wp, std::back_inserter(pt_coords), pt_fct); + assert(pt_coords.empty()); + assert(pt_coordinate_result.third); + assert(pt_coordinate_result.second == 0); + // test with hidden_vertices: wp = Weighted_point(Bare_point(0,0), 4.); pt_coordinate_result = CGAL::regular_neighbor_coordinates_2(T, wp, std::back_inserter(pt_coords), pt_fct);