Skip to content

Commit 205bc4c

Browse files
committed
remove floating point precision with close()
1 parent b86ee07 commit 205bc4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/compas/geometry/test_core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,4 +213,5 @@ def test_normal_polygon():
213213
polygon = [(0, 0, 0), (10, 0, 0), (10, 10, 0), (0, 10, 0)]
214214
normal = normal_polygon(polygon, unitized=False)
215215
area = area_polygon(polygon)
216-
assert length_vector(normal) == area
216+
assert close(area, 100.0)
217+
assert close(area, length_vector(normal))

0 commit comments

Comments
 (0)