def test_scale(self): one = Polynomial(map(GF2int, [2, 14, 7, 3])) scalar = 12 r = one.scale(12) self.assertEqual(list(r.coefficients), [24, 72, 36, 20])
def test_scale(self): one = Polynomial(map(GF2int, [2,14,7,3])) scalar = 12 r = one.scale(12) self.assertEqual(list(r.coefficients), [24, 72, 36, 20])
def test_scale_1(self): one = Polynomial([2, 4, 7, 3]) scalar = 12 r = one.scale(12) self.assertEqual(list(r.coefficients), [24, 48, 84, 36])
def test_scale_1(self): one = Polynomial([2,4,7,3]) scalar = 12 r = one.scale(12) self.assertEqual(list(r.coefficients), [24, 48, 84, 36])