def test_evaluate(self): a = Polynomial([5, 3, 1, 1, 6, 8]) e = a.evaluate(3) self.assertEqual(e, 1520)
def test_evaluate(self): a = Polynomial([5,3,1,1,6,8]) e = a.evaluate(3) self.assertEqual(e, 1520)
def test_evaluate(self): a = Polynomial(map(GF2int, [5, 3, 1, 1, 6, 8])) e = a.evaluate(3) self.assertEqual(e, 196)
def test_evaluate(self): a = Polynomial(map(GF2int, [5,3,1,1,6,8])) e = a.evaluate(3) self.assertEqual(e, 196)