Пример #1
0
 def test1(self):
     self.assertEqual(karatsuba.multp("a", "b"), False)
Пример #2
0
 def test18(self):
     a, b = random.randint(-99, -10), random.randint(-99, -10)
     self.assertEqual(karatsuba.multp(a, b), a * b)
Пример #3
0
 def test22(self):
     a, b = random.randint(1000000, 9999999), random.randint(1000000, 9999999)
     self.assertEqual(karatsuba.multp(a, b), a * b)
Пример #4
0
 def test11(self):
     a, b = (
         random.randint(10000000000000000000000000000, 1000000000000000000000000000000),
         random.randint(10000000000000000000000000000, 1000000000000000000000000000000),
     )
     self.assertEqual(karatsuba.multp(a, b), a * b)