Skip to content

Commit 22a355d

Browse files
baehrjogonzalocasas
authored andcommitted
comment test method
1 parent fc4b9ca commit 22a355d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/compas/geometry/predicates/test_predicates_2.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ def test_is_polygon_in_polygon_xy():
3535
polygon_outside = Polygon([(15, 5, 0), (20, 5, 0), (20, 10 ,0), (15, 10, 0)])
3636
assert is_polygon_in_polygon_xy(polygon_contour, polygon_outside) is False
3737

38-
polygon_intersecting = Polygon([(10, 5, 0), (15, 5, 0), (15, 10 ,0), (10, 10, 0)])
38+
polygon_intersecting = Polygon([(10, 10, 0), (10, 5, 0), (15, 5, 0), (15, 10 ,0)])
3939
assert is_polygon_in_polygon_xy(polygon_contour, polygon_intersecting) is False
40-
40+
41+
# shifting the vertices list of the same polygon shouldn't affect the containment check output anymore
42+
polygon_intersecting_shifted = Polygon(polygon_intersecting[1:] + polygon_intersecting[:1])
43+
assert is_polygon_in_polygon_xy(polygon_contour, polygon_intersecting_shifted) is False

0 commit comments

Comments
 (0)