From 7356e943debb028e2352d4ddf5e71d765949c8fd Mon Sep 17 00:00:00 2001 From: James Crake-Merani Date: Thu, 10 Oct 2024 13:29:19 +0100 Subject: [PATCH] Don't need constants for power. --- sasdata/quantities/operations_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sasdata/quantities/operations_test.py b/sasdata/quantities/operations_test.py index 97f72d9..01b873f 100644 --- a/sasdata/quantities/operations_test.py +++ b/sasdata/quantities/operations_test.py @@ -79,7 +79,7 @@ def test_d_xyz_by_components_should_be_1(): @pytest.mark.parametrize("f, expected_derivative", [ (Mul(x, x), Mul(Constant(2), x)), - (Add(Mul(Constant(2), Pow(x, Constant(2))), Add(Mul(Constant(5), x), Constant(3))), + (Add(Mul(Constant(2), Pow(x, 2)), Add(Mul(Constant(5), x), Constant(3))), Add(Mul(Constant(4), x), Constant(5))) ]) def test_expected_derivative(f: Operation, expected_derivative: Operation):