def test_jl_in(): j = JudyL() assert 42 not in j j[42] = 1 assert 42 in j assert 43 not in j j.clear()
def test_jl_bool(): j = JudyL() assert not bool(j) j[42] = 1 assert bool(j) j.clear()