Exemple #1
0
 def test_transformation_interval(self, x, params):
     transformation = RotationZ()
     actual = transformation.transform(x, params)
     self.assertSound(actual, params, partial(transformation.transform, x))
Exemple #2
0
 def test_transformation_float(self, x, alpha):
     transformation = RotationZ()
     expected = rotate_z(x, alpha.item())
     actual = transformation.transform(x, alpha)
     self.assertAlmostEqualNumpy(expected, actual)