Skip to content
Snippets Groups Projects
Commit d6a0c0b8 authored by Pierre Fernbach's avatar Pierre Fernbach Committed by JasonChmn
Browse files

[test][python] add a (failling) test highlithing error with Bezier of degree 0

parent 979e6cc1
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment