We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7629686 commit 3926167Copy full SHA for 3926167
data_structures/hashing/bloom_filter.py
@@ -54,16 +54,16 @@ def hash_(self, value: str) -> int:
54
55
def test_movies():
56
b = Bloom()
57
- b.add("titanic")
58
- b.add("avatar")
+ b.add("Titanic")
+ b.add("Avatar")
59
60
- assert b.exists("titanic")
61
- assert b.exists("avatar")
+ assert b.exists("Titanic")
+ assert b.exists("Avatar")
62
63
- assert b.exists("the goodfather") in (True, False)
64
- assert b.exists("interstellar") in (True, False)
+ assert b.exists("The Goodfather") in (True, False)
+ assert b.exists("Interstellar") in (True, False)
65
assert b.exists("Parasite") in (True, False)
66
- assert b.exists("Pulp fiction") in (True, False)
+ assert b.exists("Pulp Fiction") in (True, False)
67
68
69
def random_string(size):
0 commit comments