Skip to content

Commit 13e77de

Browse files
committed
Fix Quaternion comparison test in test_quaternion_other_methods
1 parent f5fa387 commit 13e77de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/compas/geometry/test_quaternion.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,5 @@ def test_quaternion_other_methods():
149149
quaternion = Quaternion.from_frame(Frame.worldZX())
150150
canonized = quaternion.canonized()
151151

152-
assert str(canonized) == str("Quaternion(0.5, -0.5, -0.5, -0.5)")
152+
value = TOL.format_number(0.5)
153+
assert str(canonized) == str("Quaternion(" + value + ", -" + value + ", -" + value + ", -" + value + ")")

0 commit comments

Comments
 (0)