From fdc87856e35d1b58529ba179ce611a1756625b8e Mon Sep 17 00:00:00 2001 From: fd7794 Date: Tue, 6 Feb 2024 12:24:12 +0100 Subject: [PATCH] added test for 2 multiplicators for simplify_product_function --- src/test/py/test_read_math_function.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/py/test_read_math_function.py b/src/test/py/test_read_math_function.py index f8f7198..5643e38 100644 --- a/src/test/py/test_read_math_function.py +++ b/src/test/py/test_read_math_function.py @@ -88,6 +88,9 @@ class ReadFunction(unittest.TestCase): def test_simplify_exponential_function_negative_exponent(self): self.assertEqual(simplify_exponential_function("e", "2x^-2"), ["-4x^-3"]) + def test_simplify_product_function_2_multiplicators(self): + self.assertEqual(simplify_product_function("p", "x*x"), ["x^2"]) + if __name__ == '__main__': unittest.main()