def test_different_dimensions(self): x = rd.random((self.n, 3)) y = rd.random((self.n + 2, 3)) with self.assertRaises(exception.MathError): math.rmsd(x, y)
def test_same_matrix(self): x = rd.random((self.n, 3)) self.assertLess(math.rmsd(x, x), self.eps)