Browse Source

added test for 2 multiplicators for simplify_product_function

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

3
src/test/py/test_read_math_function.py

@ -88,6 +88,9 @@ class ReadFunction(unittest.TestCase):
def test_simplify_exponential_function_negative_exponent(self): def test_simplify_exponential_function_negative_exponent(self):
self.assertEqual(simplify_exponential_function("e", "2x^-2"), ["-4x^-3"]) 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__': if __name__ == '__main__':
unittest.main() unittest.main()
Loading…
Cancel
Save