test_leiden_oefenopgave_v12.py 953 B

12345678910111213141516171819202122
  1. from tests.rulestestcase import RulesTestCase as TestCase, rewrite
  2. class TestLeidenOefenopgaveV12(TestCase):
  3. def test_1_e(self):
  4. return
  5. for chain in [['-2(6x - 4) ^ 2 * x',
  6. '-2(6x - 4)(6x - 4)x',
  7. '(-2 * 6x - 2 * -4)(6x - 4)x',
  8. '(-12x - 2 * -4)(6x - 4)x',
  9. '(-12x - -8)(6x - 4)x',
  10. '(-12x + 8)(6x - 4)x',
  11. '(-12x * 6x - 12x * -4 + 8 * 6x + 8 * -4)x',
  12. '(-72xx - 12x * -4 + 8 * 6x + 8 * -4)x',
  13. '(-72 * x ^ (1 + 1) - 12x * -4 + 8 * 6x + 8 * -4)x',
  14. '(-72 * x ^ 2 - 12x * -4 + 8 * 6x + 8 * -4)x',
  15. '(-72 * x ^ 2 - -48x + 8 * 6x + 8 * -4)x',
  16. '(-72 * x ^ 2 - -48x + 48x + 8 * -4)x',
  17. '',
  18. '']
  19. ]:
  20. self.assertRewrite(chain)