Skip to content

Commit

Permalink
add test that runs the demo code
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasWaldmann committed Oct 27, 2024
1 parent 22fe64e commit 2f58af0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/hashtablent_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,8 @@ def test_size(ntht, n):
real_size = f.tell()
# is our estimation good enough?
assert estimated_size * 0.9 < real_size < estimated_size * 1.0


def test_demo():
from borghash import demo
demo()

0 comments on commit 2f58af0

Please sign in to comment.