Browse Source

added test for exponent not 1 not 0 for simplify_exponential_function

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

3
src/test/py/test_read_math_function.py

@ -70,6 +70,9 @@ class ReadFunction(unittest.TestCase):
def test_easy_function_linear_constant_gets_simplified_negative_coefficient(self):
self.assertEqual(simplify_easy_math_function("v", "-42x+42^(2)+1-3*4/3"), [1761, "-42x"])
def test_simplify_exponential_function_exponent_not_1_not_0(self):
self.assertEqual(simplify_exponential_function("e", "x^2"), ["2x"])
if __name__ == '__main__':
unittest.main()
Loading…
Cancel
Save