Skip to content

Commit 0dca82c

Browse files
committed
[Tests] Smooth-Reach dumb test
1 parent 358877f commit 0dca82c

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

tests/python/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ SET(${PROJECT_NAME}_PYTHON_TESTS
33
matrix-util
44
op-point-modifier
55
test-parameter-server
6+
test-smooth-reach
67
)
78
FOREACH(TEST ${${PROJECT_NAME}_PYTHON_TESTS})
89
ADD_PYTHON_UNIT_TEST("py-${TEST}" "tests/python/${TEST}.py")

tests/python/test-smooth-reach.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env python
2+
3+
import unittest
4+
from dynamic_graph.sot.core.smooth_reach import SmoothReach
5+
6+
class SmoothReachTest(unittest.TestCase):
7+
def test_smooth_reach(self):
8+
sr = SmoothReach("banana")
9+
self.assertIn("input(vector)::start (Type Cst)", str(sr.start))
10+
self.assertIn("output(vector)::goal (Type Fun)", str(sr.goal))
11+
12+
13+
if __name__ == '__main__':
14+
unittest.main()

0 commit comments

Comments
 (0)