Unverified Commit 925e6ac9 authored by Fernbach Pierre's avatar Fernbach Pierre Committed by GitHub
Browse files

Merge pull request #18 from pFernbach/topic/update_eigenpy

[Tests][Python] use Quaternion.isApprox to test equality instead of ==
parents 5fd4ed0f 0997be73
......@@ -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())
......
Supports Markdown
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