Commit 7c2cca6d authored by Gabriele Buondonno's avatar Gabriele Buondonno
Browse files

[test] [python] Add test_case

parent a6f39d1b
import unittest
import numpy as np
class TestCase(unittest.TestCase):
def assertApprox(self, a, b, epsilon=1e-6):
return self.assertTrue(np.allclose(a, b, epsilon), "%s !~= %s" % (a, b))
Supports Markdown
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