Added unit test for '3 4' -> '3 * 4' conversion.

parent 58a456b5
...@@ -35,6 +35,7 @@ class TestCalc(unittest.TestCase): ...@@ -35,6 +35,7 @@ class TestCalc(unittest.TestCase):
('xy', N('*', L('x'), L('y'))), ('xy', N('*', L('x'), L('y'))),
('2x', N('*', L(2), L('x'))), ('2x', N('*', L(2), L('x'))),
('x4', N('^', L('x'), L(4))), ('x4', N('^', L('x'), L(4))),
('3 4', N('*', L(3), L(4))),
('xy4', N('*', L('x'), N('^', L('y'), L(4)))), ('xy4', N('*', L('x'), N('^', L('y'), L(4)))),
('(x)4', N('*', L('x'), L(4))), ('(x)4', N('*', L('x'), L(4))),
('(3+4)2', N('*', N('+', L(3), L(4)), L(2))), ('(3+4)2', N('*', N('+', L(3), L(4)), L(2))),
......
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