Poly eval with poly works
This commit is contained in:
parent
f64ad83faf
commit
d5c0a86109
@ -43,9 +43,9 @@ class TestPolynom(unittest.TestCase):
|
||||
p = Polynom([-1])
|
||||
self.assertEqual(p(3).simplified(), -1)
|
||||
|
||||
#def test_eval_poly(self):
|
||||
# p = Polynom([1, 2])
|
||||
# self.assertEqual(p("1+h").simplified(), Polynom([3,2]))
|
||||
def test_eval_poly(self):
|
||||
p = Polynom([1, 2])
|
||||
self.assertEqual(p("1+h").simplified(), Polynom([3,2], "h"))
|
||||
|
||||
#def test_print(self):
|
||||
# p = Polynom([1,2,3])
|
||||
|
Loading…
Reference in New Issue
Block a user