def test_power_negative_int(self, rr): """Test that the neg function creates a regref transform that negates""" a = -3 x = 0.6543 rrt = utils.power(rr, a) assert isinstance(rrt, RegRefTransform) assert rrt.func(x) == x**a
def test_power_positive_frac(self): """Test that the neg function creates a regref transform that negates""" a = 0.574 x = 0.6543 eng, q = sf.Engine(1) rrt = utils.power(q[0], a) assert isinstance(rrt, sf.engine.RegRefTransform) assert rrt.func(x) == x**a