From 63bed1fbd785ded60009e0811fec80f9ce099bef Mon Sep 17 00:00:00 2001 From: fd7794 Date: Tue, 6 Feb 2024 11:55:03 +0100 Subject: [PATCH] added test for premultiplicator for simplify_exponential_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 97fa750..6839f0d 100644 --- a/src/test/py/test_read_math_function.py +++ b/src/test/py/test_read_math_function.py @@ -73,6 +73,9 @@ class ReadFunction(unittest.TestCase): def test_simplify_exponential_function_exponent_not_1_not_0(self): self.assertEqual(simplify_exponential_function("e", "x^2"), ["2x"]) + def test_simplify_exponential_function_premultiplicator(self): + self.assertEqual(simplify_exponential_function("e", "2x^2"), ["4x"]) + if __name__ == '__main__': unittest.main()