Commit 15aba634 authored by Guilhem Saurel's avatar Guilhem Saurel Committed by GitHub

Merge pull request #118 from nim65s/devel

[Tests] add initialize euler integrator test
parents 9973bde8 54d2c67d
Pipeline #7546 failed with stage
in 63 minutes and 24 seconds
SET(${PROJECT_NAME}_PYTHON_TESTS
op-point-modifier
initialize-euler
)
FOREACH(TEST ${${PROJECT_NAME}_PYTHON_TESTS})
ADD_PYTHON_UNIT_TEST("py-${TEST}" "unitTesting/python/${TEST}.py")
......
#!/usr/bin/env python
import unittest
import dynamic_graph as dgpy
import dynamic_graph.sot.core.integrator_euler as ie
class OpPointModifierTest(unittest.TestCase):
def test_initialize_ie(self):
ent = ie.IntegratorEulerVectorDouble("ie")
with self.assertRaises(dgpy.dgpyError) as cm:
ent.initialize()
self.assertEqual(str(cm.exception),
'In SignalPtr: SIN ptr not set. (in signal <sotIntegratorAbstract(ie)::input(vector)::sin>)')
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