Commit 34e6d703 authored by Taddeus Kroes's avatar Taddeus Kroes

Addd some tests for fix in previous commit.

parent 330a223a
......@@ -66,7 +66,9 @@ class TestParser(unittest.TestCase):
self.assertEqual(tree('[x]\'\''), der(der(x)))
def test_bracket_derivative(self):
exp, x = tree('x ^ 2, x')
exp, x, d = tree('x ^ 2, x, d')
self.assertEqual(tree('d/dx x ^ 2'), der(exp, x))
#self.assertEqual(tree('d(x ^ 2)/dx'), der(exp, x))
self.assertEqual(tree('d / dx x ^ 2'), der(exp, x))
self.assertEqual(tree('d/d'), d / d)
# FIXME: self.assertEqual(tree('d(x ^ 2)/dx'), der(exp, x))
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