示例#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
示例#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