diff --git a/python/test/test.py b/python/test/test.py index 9f61b24e502b40b77573e72b11697b0574de30ba..42d5b2fa585d48c76cc26d37d95d9afa4746be2d 100644 --- a/python/test/test.py +++ b/python/test/test.py @@ -22,6 +22,13 @@ class TestCurve(unittest.TestCase): # - Functions : constructor, min, max, derivate,compute_derivate, compute_primitive # - Variables : degree, nbWayPoints __EPS = 1e-6 + waypoints = matrix([[1., 2., 3.]]).T + a = bezier(waypoints,2.) + t = 0. + while t < 2.: + assert_allclose(a(t),matrix([1., 2., 3.]).T) + t += 0.1 + waypoints = matrix([[1., 2., 3.], [4., 5., 6.]]).transpose() waypoints6 = matrix([[1., 2., 3., 7., 5., 5.], [4., 5., 6., 4., 5., 6.]]).transpose() time_waypoints = matrix([0., 1.]).transpose()