initialize-euler.py 446 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env python

import unittest

import dynamic_graph.sot.core.integrator_euler as ie


class OpPointModifierTest(unittest.TestCase):
    def test_initialize_ie(self):
        ent = ie.IntegratorEulerVectorDouble("ie")
Guilhem Saurel's avatar
Guilhem Saurel committed
11
        with self.assertRaises(RuntimeError) as cm:
12
            ent.initialize()
Guilhem Saurel's avatar
Guilhem Saurel committed
13
        self.assertEqual(str(cm.exception), 'The numerator or the denominator is empty.')
14
15
16
17


if __name__ == '__main__':
    unittest.main()