From efb6794a6c8f29c9b92b850eef9065d9bae47f8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Mon, 12 Mar 2018 11:14:23 +0100 Subject: [PATCH] Add a test --- Polygon/test/Polygon/AlgorithmTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Polygon/test/Polygon/AlgorithmTest.cpp b/Polygon/test/Polygon/AlgorithmTest.cpp index 15aaa44f3ab..cc5fac6a76e 100644 --- a/Polygon/test/Polygon/AlgorithmTest.cpp +++ b/Polygon/test/Polygon/AlgorithmTest.cpp @@ -66,6 +66,10 @@ void test_polygon(const R&, const Point&, const char* FileName) CGAL::Orientation orientation = CGAL::orientation_2(polygon.begin(), polygon.end()); + polygon.clear(); + assert(CGAL::is_simple_2(polygon.begin(), polygon.end())); + assert(CGAL::is_convex_2(polygon.begin(), polygon.end())); + cout << "left = " << *left << endl; cout << "right = " << *right << endl; cout << "top = " << *top << endl;