def f(i): d = {i + .5: 5} assert contains_with_hash(d, i + .5, compute_hash(i + .5)) assert not contains_with_hash(d, i + .3, compute_hash(i + .3)) return 0