Commit 22719313 authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

[tests][Python] fix cubic_hermite tests: replace == with isclose

parent b33b907d
Pipeline #9459 passed with stage
in 5 minutes and 5 seconds
......@@ -600,7 +600,7 @@ class TestCurves(unittest.TestCase):
a.max()
a(0.4)
self.assertTrue((a(0.) == array([1., 2., 3.])).all())
self.assertTrue((a.derivate(0., 1) == array([[2., 2., 2.]]).transpose()).all())
self.assertTrue(isclose(a.derivate(0., 1), array([[2., 2., 2.]]).transpose()).all())
self.assertTrue((a.derivate(0.4, 0) == a(0.4)).all())
a.derivate(0.4, 2)
return
......
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