Add a test

This commit is contained in:
Mael Rouxel-Labbé 2018-03-12 11:14:23 +01:00
parent 4d67ff3d8b
commit efb6794a6c
1 changed files with 4 additions and 0 deletions

View File

@ -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;