diff --git a/data_structures/hashing/bloom_filter.py b/data_structures/hashing/bloom_filter.py index 0ba1557e6..a659fccf7 100644 --- a/data_structures/hashing/bloom_filter.py +++ b/data_structures/hashing/bloom_filter.py @@ -29,9 +29,9 @@ because both hash functions return the same value '01100100' Not added elements should return False ... ->>> not_present_films = ("The Godfather", "Interstellar", "Parasite", "Pulp Fiction") +>>> not_present_films = ("The Godfather", "Parasite", "Pulp Fiction") >>> {film: bloom.format_hash(film) for film in not_present_films} -{'The Godfather': '00000101', 'Interstellar': '00000011', 'Parasite': '00010010', 'Pulp Fiction': '10000100'} +{'The Godfather': '00000101', 'Parasite': '00010010', 'Pulp Fiction': '10000100'} >>> any(film in bloom for film in not_present_films) False