Skip to content

Commit

Permalink
Fix Quaternion comparison test in test_quaternion_other_methods
Browse files Browse the repository at this point in the history
  • Loading branch information
yck011522 committed Jul 10, 2024
1 parent f5fa387 commit 13e77de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/compas/geometry/test_quaternion.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,5 @@ def test_quaternion_other_methods():
quaternion = Quaternion.from_frame(Frame.worldZX())
canonized = quaternion.canonized()

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

0 comments on commit 13e77de

Please sign in to comment.