Commit 7e891986 authored by Taddeus Kroes's avatar Taddeus Kroes

Added test for integral notation.

parent b2ddec59
...@@ -107,6 +107,7 @@ class TestParser(unittest.TestCase): ...@@ -107,6 +107,7 @@ class TestParser(unittest.TestCase):
self.assertEqual(tree('int x2 dx'), integral(x ** 2, x)) self.assertEqual(tree('int x2 dx'), integral(x ** 2, x))
self.assertEqual(tree('int x2 dy'), integral(x ** 2, y)) self.assertEqual(tree('int x2 dy'), integral(x ** 2, y))
self.assertEqual(tree('int_a^b x2'), integral(x ** 2, x, a, b))
self.assertEqual(tree('int_a^b x2 dy'), integral(x ** 2, y, a, b)) self.assertEqual(tree('int_a^b x2 dy'), integral(x ** 2, y, a, b))
self.assertEqual(tree('int_(a-b)^(a+b) x2'), self.assertEqual(tree('int_(a-b)^(a+b) x2'),
integral(x ** 2, x, a - b, a + b)) integral(x ** 2, x, a - b, a + b))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment