Skip to content

Commit b33feef

Browse files
committed
closeness instead of absolute comparison
1 parent f05adee commit b33feef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/compas/geometry/test_core_transformations.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,13 @@ def test_transform_points(T):
4949

5050

5151
def test_transform_vectors(R):
52-
assert transform_vectors([[1, 2, 3], [5, 6, 7]], R) == [
52+
known = [
5353
[1.0, -3.5781372230600135, 0.44377247881360526],
5454
[5.0, -8.946418341978926, 2.227464668699156],
5555
]
56+
result = transform_vectors([[1, 2, 3], [5, 6, 7]], R)
57+
for a, b in zip(result, known):
58+
assert TOL.is_allclose(a, b)
5659

5760

5861
# def test_homogenize():

0 commit comments

Comments
 (0)