Skip to content

Commit f98e6fc

Browse files
author
Peter
committed
fix test
1 parent 1042b0f commit f98e6fc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/test_rotation_conversions.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ def test_axis_angle_to_matrix_perf():
2323
dt2 = timeit.timeit(lambda: axis_and_angle_to_matrix_33(axis=axis_1d, theta=theta), number=number)
2424
print(f'New method: {dt2:.5f}')
2525

26-
def test_quaternion_close
26+
27+
def test_quaternion_not_close():
28+
# ensure it returns false for quaternions that are far apart
29+
q1 = torch.tensor([1., 0, 0, 0])
30+
q2 = torch.tensor([0., 1, 0, 0])
31+
assert not quaternion_close(q1, q2)
32+
2733

2834
def test_quaternion_from_euler():
2935
q = quaternion_from_euler(torch.tensor([0., 0, 0]))

0 commit comments

Comments
 (0)