(self, a, b, msg=None, epsilon=1e-6)
| 5 | |
| 6 | class TestProblem(unittest.TestCase): |
| 7 | def assertNumpyEqual(self, a, b, msg=None, epsilon=1e-6): |
| 8 | if msg is None: |
| 9 | msg = f"Checking that {a} equals {b}" |
| 10 | self.assertTrue(np.linalg.norm(a - b) < epsilon, msg=msg) |
| 11 | |
| 12 | def test_expression_arithmetics(self): |
| 13 | problem = placo.Problem() |
no test coverage detected