Skip to content

Commit

Permalink
Less strict test [stressLinchk]
Browse files Browse the repository at this point in the history
  • Loading branch information
durban committed Apr 16, 2024
1 parent ed09d48 commit 91fa01c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ final class BloomFilterSpec extends ScalaCheckSuite {
assertEquals(BloomFilter64.insertIfAbsent(bf, item), exp)
val estimatedSize = BloomFilter64.estimatedSize(bf)
val ratio = estimatedSize.toDouble / N.toDouble
assert((clue(ratio) >= 0.6) && (ratio <= 1.4))
assert((clue(ratio) >= 0.5) && (ratio <= 1.5))
if (BloomFilter64.maybeContains(bf, item)) falsePositives + 1
else falsePositives
}
Expand Down

0 comments on commit 91fa01c

Please sign in to comment.