def test_count_trailing_zeros(): from rpython.rlib.rbigint import ONERBIGINT from pycket.arithmetic import count_trailing_zeros for i in range(1025): assert i == count_trailing_zeros(ONERBIGINT.lshift(i))