Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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