Skip to content

Commit c13e0e4

Browse files
committed
polyhedron edges and faces test
1 parent 57ad521 commit c13e0e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/compas/geometry/test_polyhedron.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ def test_polyhedron():
1111
assert polyhedron.vertices == vertices
1212
assert polyhedron.faces == faces
1313
assert polyhedron.name == name
14+
assert all(u < len(polyhedron.vertices) and v < len(polyhedron.vertices) for u, v in polyhedron.edges)
15+
assert all(v < len(polyhedron.vertices) for face in polyhedron.faces for v in face)
1416
assert polyhedron.points == vertices
1517
assert polyhedron.lines == [(a, b) for a, b in pairwise(vertices[-1:] + vertices)]
1618
assert polyhedron.points[0] == vertices[0]

0 commit comments

Comments
 (0)