test_case.py
Go to the documentation of this file.
1 import unittest
2 import numpy as np
3 
4 
5 class TestCase(unittest.TestCase):
6  def assertApprox(self, a, b, epsilon=1e-6):
7  return self.assertTrue(np.allclose(a, b, epsilon), "%s !~= %s" % (a, b))
def assertApprox(self, a, b, epsilon=1e-6)
Definition: test_case.py:6


hpp-fcl
Author(s):
autogenerated on Fri Jun 2 2023 02:39:02