Explorar o código

Added test_1_5 test case from leiden oefenopgaves.

Sander Mathijs van Veen %!s(int64=14) %!d(string=hai) anos
pai
achega
b664d4d470
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      tests/test_leiden_oefenopgave.py

+ 4 - 0
tests/test_leiden_oefenopgave.py

@@ -85,6 +85,10 @@ class TestLeidenOefenopgave(TestCase):
         # FIXME: self.assertRewrite(['x * -1 + x * -1', '(-1 + -1)x', '-2x'])
         pass
 
+    def test_1_5(self):
+        self.assertRewrite(['(2x + x)x', '(2 + 1)xx', '3xx',
+                            '3 * x ^ (1 + 1)', '3 * x ^ 2'])
+
     def test_2(self):
         pass