From 81b6cdea13e3dee15eff8edad5f0c9a0472b3c13 Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Mon, 31 Aug 2020 08:26:42 +0200 Subject: [PATCH] Add missings tests --- .../test_compilation.cpp | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Boolean_set_operations_2/test/Boolean_set_operations_2/test_compilation.cpp b/Boolean_set_operations_2/test/Boolean_set_operations_2/test_compilation.cpp index de62d496fb8..f43083fe5f7 100644 --- a/Boolean_set_operations_2/test/Boolean_set_operations_2/test_compilation.cpp +++ b/Boolean_set_operations_2/test/Boolean_set_operations_2/test_compilation.cpp @@ -242,6 +242,26 @@ void test_CGAL_Polygon_variants() std::vector result; Traits tr; + CGAL::do_intersect(pgn1, pgn2); + CGAL::do_intersect(pgn1, pgn2, CGAL::Tag_true()); + CGAL::do_intersect(pgn1, pgn2, CGAL::Tag_false()); + CGAL::do_intersect(pgn1, pgn2, tr); + + CGAL::do_intersect(pgn1, pgn_with_holes2); + CGAL::do_intersect(pgn1, pgn_with_holes2, CGAL::Tag_true()); + CGAL::do_intersect(pgn1, pgn_with_holes2, CGAL::Tag_false()); + CGAL::do_intersect(pgn1, pgn_with_holes2, tr); + + CGAL::do_intersect(pgn_with_holes1, pgn2); + CGAL::do_intersect(pgn_with_holes1, pgn2, CGAL::Tag_true()); + CGAL::do_intersect(pgn_with_holes1, pgn2, CGAL::Tag_false()); + CGAL::do_intersect(pgn_with_holes1, pgn2, tr); + + CGAL::do_intersect(pgn_with_holes1, pgn_with_holes2); + CGAL::do_intersect(pgn_with_holes1, pgn_with_holes2, CGAL::Tag_true()); + CGAL::do_intersect(pgn_with_holes1, pgn_with_holes2, CGAL::Tag_false()); + CGAL::do_intersect(pgn_with_holes1, pgn_with_holes2, tr); + CGAL::join(pgn1, pgn2, res); CGAL::join(pgn1, pgn2, res, CGAL::Tag_true()); CGAL::join(pgn1, pgn2, res, CGAL::Tag_false()); @@ -262,6 +282,16 @@ void test_CGAL_Polygon_variants() CGAL::join(pgn_with_holes1, pgn_with_holes2, res, CGAL::Tag_false()); CGAL::join(pgn_with_holes1, pgn_with_holes2, res, tr); + CGAL::join(polygons.begin(), polygons.end(), std::back_inserter(result)); + CGAL::join(polygons.begin(), polygons.end(), std::back_inserter(result), CGAL::Tag_true()); + CGAL::join(polygons.begin(), polygons.end(), std::back_inserter(result), CGAL::Tag_false()); + CGAL::join(polygons.begin(), polygons.end(), std::back_inserter(result), tr); + + CGAL::join(polygons_with_holes.begin(), polygons_with_holes.end(), std::back_inserter(result)); + CGAL::join(polygons_with_holes.begin(), polygons_with_holes.end(), std::back_inserter(result), CGAL::Tag_true()); + CGAL::join(polygons_with_holes.begin(), polygons_with_holes.end(), std::back_inserter(result), CGAL::Tag_false()); + CGAL::join(polygons_with_holes.begin(), polygons_with_holes.end(), std::back_inserter(result), tr); + CGAL::difference(pgn1, pgn2, std::back_inserter(result)); CGAL::difference(pgn1, pgn2, std::back_inserter(result), CGAL::Tag_true()); CGAL::difference(pgn1, pgn2, std::back_inserter(result), CGAL::Tag_false());