Skip to content

Commit

Permalink
test changing auto_expand
Browse files Browse the repository at this point in the history
  • Loading branch information
barrust committed Jan 13, 2024
1 parent 39694d1 commit 52874be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/quotientfilter_test.py
Expand Up @@ -51,6 +51,10 @@ def test_qf_init(self):
self.assertEqual(qf.num_elements, 16777216) # 2**qf.quotient
self.assertFalse(qf.auto_expand)

# reset auto_expand
qf.auto_expand = True
self.assertTrue(qf.auto_expand)

def test_qf_add_check(self):
"test that the qf is able to add and check elements"
qf = QuotientFilter(quotient=8)
Expand Down

0 comments on commit 52874be

Please sign in to comment.