def test_mul_simple(self): a = 123 b = 456 self.assertEqual(a*b, bigops.list_to_int(bigops.mul(bigops.int_to_list(a), \ bigops.int_to_list(b))))
def test_mul_trivial(self): self.assertEqual(1, bigops.list_to_int(bigops.mul([1], [1]))) for num in xrange(0, 1000, 13): self.assertEqual(num, bigops.list_to_int(\ bigops.mul(\ bigops.int_to_list(num), [1] ) ) )