Commit 0997be73 authored by Pierre Fernbach's avatar Pierre Fernbach Committed by Pierre Fernbach
Browse files

[test][python] use Quaternion.isApprox to test equality instead of operator ==

parent 9a96a4cf
......@@ -786,10 +786,10 @@ class TestCurves(unittest.TestCase):
self.assertTrue(isclose(so3Rot(max), end_rot).all())
self.assertTrue(isclose(so3Quat(min), init_rot).all())
self.assertTrue(isclose(so3Quat(max), end_rot).all())
self.assertEqual(so3Rot.computeAsQuaternion(min), init_quat)
self.assertEqual(so3Rot.computeAsQuaternion(max), end_quat)
self.assertEqual(so3Quat.computeAsQuaternion(min), init_quat)
self.assertEqual(so3Quat.computeAsQuaternion(max), end_quat)
self.assertTrue(so3Rot.computeAsQuaternion(min).isApprox(init_quat))
self.assertTrue(so3Rot.computeAsQuaternion(max).isApprox(end_quat))
self.assertTrue(so3Quat.computeAsQuaternion(min).isApprox(init_quat))
self.assertTrue(so3Quat.computeAsQuaternion(max).isApprox(end_quat))
t = min
while t < max:
self.assertTrue(isclose(so3Quat(t), so3Rot(t)).all())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment