From 2f58af06e20d277fd945584b099eba62f1a12ad5 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 27 Oct 2024 15:11:46 +0100 Subject: [PATCH] add test that runs the demo code --- tests/hashtablent_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/hashtablent_test.py b/tests/hashtablent_test.py index 4325807..fea75fd 100644 --- a/tests/hashtablent_test.py +++ b/tests/hashtablent_test.py @@ -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()