コード例 #1
0
 def test__kmul_split(self):
     split = 5
     diglo = [0] * split
     dighi = [lobj.MASK] * split
     f1 = bigint(diglo + dighi, 1)
     hi, lo = lobj._kmul_split(f1, split)
     assert lo._digits == [_store_digit(0)]
     assert hi._digits == map(_store_digit, dighi)
コード例 #2
0
 def test__kmul_split(self):
     split = 5
     diglo = [0] * split
     dighi = [lobj.MASK] * split
     f1 = rbigint(diglo + dighi, 1)
     hi, lo = lobj._kmul_split(f1, split)
     assert lo.digits == [0]
     assert hi.digits == dighi
コード例 #3
0
 def test__kmul_split(self):
     split = 5
     diglo = [0] * split
     dighi = [lobj.MASK] * split
     f1 = rbigint(diglo + dighi, 1)
     hi, lo = lobj._kmul_split(f1, split)
     assert lo.digits == [0]
     assert hi.digits == dighi