steps for poly fixed! All test pass except one (need to fix)

This commit is contained in:
Benjamin Bertrand
2016-03-10 17:25:13 +03:00
parent fba7f16762
commit 9529c32b50
3 changed files with 51 additions and 42 deletions

View File

@@ -155,13 +155,13 @@ class TestPolynom(unittest.TestCase):
def test_pow_monome(self):
p = Polynom([0, -2])
r = p**3
ans = '- 8 x^{ 3 }'
ans = '-8 x^{ 3 }'
self.assertEqual(str(r), ans)
def test_pow2_monome(self):
p = Polynom([0, -2])
r = p ^ 3
ans = '- 8 x^{ 3 }'
ans = '-8 x^{ 3 }'
self.assertEqual(str(r), ans)