Skip to content

Commit

Permalink
fix tests for ipy
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalocasas committed Oct 15, 2024
1 parent fc44024 commit 805b968
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions tests/compas/geometry/test_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,15 @@ def test_box_corners(default_box):
assert len(default_box.points) == 8


@pytest.mark.parametrize(
"index, expected",
[
(0, Point(-0.5, -1.0, -1.5)),
(1, Point(-0.5, 1.0, -1.5)),
(2, Point(0.5, 1.0, -1.5)),
(3, Point(0.5, -1.0, -1.5)),
(4, Point(-0.5, -1.0, 1.5)),
(5, Point(-0.5, 1.0, 1.5)),
(6, Point(0.5, 1.0, 1.5)),
(7, Point(0.5, -1.0, 1.5)),
],
)
def test_box_corner(default_box, index, expected):
assert default_box.corner(index) == expected
def test_box_corner(default_box):
assert default_box.corner(0) == Point(-0.5, -1.0, -1.5)
assert default_box.corner(1) == Point(-0.5, 1.0, -1.5)
assert default_box.corner(2) == Point(0.5, 1.0, -1.5)
assert default_box.corner(3) == Point(0.5, -1.0, -1.5)
assert default_box.corner(4) == Point(-0.5, -1.0, 1.5)
assert default_box.corner(5) == Point(-0.5, 1.0, 1.5)
assert default_box.corner(6) == Point(0.5, 1.0, 1.5)
assert default_box.corner(7) == Point(0.5, -1.0, 1.5)


def test_box_contains_point(default_box):
Expand Down

0 comments on commit 805b968

Please sign in to comment.