Prechádzať zdrojové kódy

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

Sander Mathijs van Veen 14 rokov pred
rodič
commit
84c9dcb413
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      tests/test_calc.py

+ 1 - 0
tests/test_calc.py

@@ -35,6 +35,7 @@ class TestCalc(unittest.TestCase):
                        ('xy',     N('*', L('x'), L('y'))),
                        ('2x',     N('*', L(2), L('x'))),
                        ('x4',     N('^', L('x'), L(4))),
+                       ('3 4',    N('*', L(3), L(4))),
                        ('xy4',    N('*', L('x'), N('^', L('y'), L(4)))),
                        ('(x)4',   N('*', L('x'), L(4))),
                        ('(3+4)2', N('*', N('+', L(3), L(4)), L(2))),