From b3a07bf6e4337fc9dce9405e24789d9d76a0714f Mon Sep 17 00:00:00 2001 From: Lafrite Date: Sat, 7 Mar 2015 09:15:21 +0100 Subject: [PATCH] adapt test on __call__ for polynom --- test/test_polynom.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/test_polynom.py b/test/test_polynom.py index 8c1cdf3..79743a7 100644 --- a/test/test_polynom.py +++ b/test/test_polynom.py @@ -33,20 +33,19 @@ class TestPolynom(unittest.TestCase): def test_eval_base(self): p = Polynom([1, 2]) - self.assertEqual(p(3).simplify(), 7) + self.assertEqual(p(3), 7) def test_eval_const(self): p = Polynom([1]) - self.assertEqual(p(3).simplify(), 1) + self.assertEqual(p(3), 1) def test_eval_const_neg(self): p = Polynom([-1]) - self.assertEqual(p(3).simplify(), -1) + self.assertEqual(p(3), -1) def test_eval_poly(self): p = Polynom([1, 2]) - hp1 = Expression("h+1") - self.assertEqual(p(hp1).simplify(), Polynom([3,2], "h")) + self.assertEqual(p("h+1"), Polynom([3,2], "h")) #def test_print(self): # p = Polynom([1,2,3])