Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
sot-core
Commits
0dca82c9
Commit
0dca82c9
authored
Dec 07, 2020
by
Guilhem Saurel
Browse files
[Tests] Smooth-Reach dumb test
parent
358877f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/python/CMakeLists.txt
View file @
0dca82c9
...
...
@@ -3,6 +3,7 @@ SET(${PROJECT_NAME}_PYTHON_TESTS
matrix-util
op-point-modifier
test-parameter-server
test-smooth-reach
)
FOREACH
(
TEST
${${
PROJECT_NAME
}
_PYTHON_TESTS
}
)
ADD_PYTHON_UNIT_TEST
(
"py-
${
TEST
}
"
"tests/python/
${
TEST
}
.py"
)
...
...
tests/python/test-smooth-reach.py
0 → 100755
View file @
0dca82c9
#!/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
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment