From 38cf8a2dde4f3cc4d8e5c5e0578158105beeaf10 Mon Sep 17 00:00:00 2001 From: Christian Ledermann Date: Wed, 1 May 2024 19:16:42 +0100 Subject: [PATCH] assert ccw orientations for the convex hull --- tests/hypothesis/test_functions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/hypothesis/test_functions.py b/tests/hypothesis/test_functions.py index 7e42ded..579ba5b 100644 --- a/tests/hypothesis/test_functions.py +++ b/tests/hypothesis/test_functions.py @@ -219,6 +219,7 @@ def test_fuzz_convex_hull(points: typing.List[typing.Tuple[float, float]]) -> No for coord in hull: assert coord in points assert len(hull) <= len(points) + 1 + assert pygeoif.functions.signed_area(hull) >= 0 @given(