From f3f4e5bb48ac00e1f0fc321115abd95d77a554f2 Mon Sep 17 00:00:00 2001 From: fd7794 Date: Tue, 6 Feb 2024 11:56:19 +0100 Subject: [PATCH] added test for exponent 0 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 a1f3579..73c29c1 100644 --- a/src/test/py/test_read_math_function.py +++ b/src/test/py/test_read_math_function.py @@ -79,6 +79,9 @@ class ReadFunction(unittest.TestCase): def test_simplify_exponential_function_exponent_1(self): self.assertEqual(simplify_exponential_function("e", "2x^1"), ["2"]) + def test_simplify_exponential_function_exponent_0(self): + self.assertEqual(simplify_exponential_function("e", "2x^0"), ["0x^-1"]) + if __name__ == '__main__': unittest.main()