unittest
python
test_case.py
Go to the documentation of this file.
1
import
unittest
2
3
from
pinocchio.utils
import
isapprox
4
5
6
def
tracefunc
(frame, event, arg):
7
print(
"%s, %s: %d"
% (event, frame.f_code.co_filename, frame.f_lineno))
8
return
tracefunc
9
10
11
class
PinocchioTestCase
(unittest.TestCase):
12
def
assertApprox
(self, a, b, eps=1e-6):
13
return
self.assertTrue(
14
isapprox(a, b, eps),
15
f
"\n{a}\nis not approximately equal to\n{b}\nwith precision {eps:f}"
,
16
)
test_case.tracefunc
def tracefunc(frame, event, arg)
Definition:
test_case.py:6
pinocchio.utils
Definition:
bindings/python/pinocchio/utils.py:1
test_case.PinocchioTestCase.assertApprox
def assertApprox(self, a, b, eps=1e-6)
Definition:
test_case.py:12
test_case.PinocchioTestCase
Definition:
test_case.py:11
pinocchio
Author(s):
autogenerated on Tue Jan 7 2025 03:41:47