Browse Source

added test for exponent 0 for simplify_exponential_function

remotes/origin/feature/feature-read-math-function-added-funktions
fd7794 11 months ago
parent
commit
f3f4e5bb48
  1. 3
      src/test/py/test_read_math_function.py

3
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()
Loading…
Cancel
Save