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)
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