Commit 0dca82c9 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[Tests] Smooth-Reach dumb test

parent 358877f1
...@@ -3,6 +3,7 @@ SET(${PROJECT_NAME}_PYTHON_TESTS ...@@ -3,6 +3,7 @@ SET(${PROJECT_NAME}_PYTHON_TESTS
matrix-util matrix-util
op-point-modifier op-point-modifier
test-parameter-server test-parameter-server
test-smooth-reach
) )
FOREACH(TEST ${${PROJECT_NAME}_PYTHON_TESTS}) FOREACH(TEST ${${PROJECT_NAME}_PYTHON_TESTS})
ADD_PYTHON_UNIT_TEST("py-${TEST}" "tests/python/${TEST}.py") ADD_PYTHON_UNIT_TEST("py-${TEST}" "tests/python/${TEST}.py")
......
#!/usr/bin/env python
import unittest
from dynamic_graph.sot.core.smooth_reach import SmoothReach
class SmoothReachTest(unittest.TestCase):
def test_smooth_reach(self):
sr = SmoothReach("banana")
self.assertIn("input(vector)::start (Type Cst)", str(sr.start))
self.assertIn("output(vector)::goal (Type Fun)", str(sr.goal))
if __name__ == '__main__':
unittest.main()
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