chore: move to src

This commit is contained in:
shash256 2025-01-13 13:38:40 +04:00
parent ab4c507343
commit 45b553eab6
3 changed files with 3 additions and 5 deletions

View File

@ -5,8 +5,6 @@ import results
import private/probabilities
type
BloomFilterError* = object of CatchableError
BloomFilter* = object
capacity*: int
errorRate*: float
@ -33,7 +31,7 @@ proc hashN(item: string, n: int, maxValue: int): int =
{.pop.}
proc getMOverNBitsForK(k: int, targetError: float,
proc getMOverNBitsForK*(k: int, targetError: float,
probabilityTable = kErrors): Result[int, string] =
## Returns the optimal number of m/n bits for a given k.
if k notin 0..12:

View File

@ -1,5 +1,5 @@
import unittest, results
include ../bloom_filter/bloom
import unittest, results, strutils
import ../src/bloom
from random import rand, randomize
suite "bloom filter":