Skip to content

Commit

Permalink
Revert fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdalpino committed Oct 12, 2024
1 parent 2bd7f50 commit cd5b10a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_bloom_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ def test_basic(self):
layer_size=32000000,
)

self.assertEqual(filter.false_positive_rate, 0)
self.assertEqual(filter.false_positive_rate(), 0)

self.assertFalse(filter.exists('foo'))

filter.insert('foo')

self.assertTrue(filter.exists('foo'))
self.assertGreater(filter.false_positive_rate, 0)
self.assertGreater(filter.false_positive_rate(), 0)

self.assertFalse(filter.exists('bar'))

filter.insert('bar')

self.assertTrue(filter.exists('bar'))
self.assertGreater(filter.false_positive_rate, 0)
self.assertGreater(filter.false_positive_rate(), 0)

def test_exists_or_insert(self):
filter = pybloomer.BloomFilter(
Expand Down

0 comments on commit cd5b10a

Please sign in to comment.