Skip to content

Commit

Permalink
add test for HyperLogLog#count
Browse files Browse the repository at this point in the history
  • Loading branch information
mogproject committed Jun 12, 2015
1 parent 6713afa commit 54847bd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ with GeneratorDrivenPropertyChecks {
h1.count shouldBe 34910377
h2.count shouldBe 35748227044L
}
it("should read value from cache") {
val hll = HyperLogLog(isDense = false, Seq.fill(HyperLogLog.m - 2)(0) ++ Seq.fill(2)(1), false, 2)
hll.count shouldBe 2
}
}
}

0 comments on commit 54847bd

Please sign in to comment.