Skip to content

Commit

Permalink
closeness instead of absolute comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvanmele committed Apr 25, 2024
1 parent f05adee commit b33feef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/compas/geometry/test_core_transformations.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,13 @@ def test_transform_points(T):


def test_transform_vectors(R):
assert transform_vectors([[1, 2, 3], [5, 6, 7]], R) == [
known = [
[1.0, -3.5781372230600135, 0.44377247881360526],
[5.0, -8.946418341978926, 2.227464668699156],
]
result = transform_vectors([[1, 2, 3], [5, 6, 7]], R)
for a, b in zip(result, known):
assert TOL.is_allclose(a, b)


# def test_homogenize():
Expand Down

0 comments on commit b33feef

Please sign in to comment.