Skip to content

Commit 64b4d60

Browse files
committed
update tests accordingly
1 parent 0997040 commit 64b4d60

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/compas/datastructures/test_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_graph_from_pointcloud():
8383
graph = Graph.from_pointcloud(cloud=cloud, degree=3)
8484
assert graph.number_of_nodes() == len(cloud)
8585
for node in graph.nodes():
86-
assert graph.degree(node) >= 3
86+
assert graph.degree(node) <= 3
8787

8888

8989
# ==============================================================================

tests/compas/geometry/test_polyhedron.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ def test_polyhedron():
1212
assert polyhedron.faces == faces
1313
assert polyhedron.name == name
1414
assert polyhedron.points == vertices
15-
assert polyhedron.lines == [(a, b) for a, b in pairwise(vertices + vertices[:1])]
15+
assert polyhedron.lines == [(a, b) for a, b in pairwise(vertices[-1:] + vertices)]
1616
assert polyhedron.points[0] == vertices[0]
1717
assert polyhedron.points[-1] != polyhedron.points[0]

0 commit comments

Comments
 (0)