Skip to content
Permalink
Browse files
adjusted tests
  • Loading branch information
AlexanderSaydakov committed Nov 19, 2021
1 parent a8e94b5 commit 9a60623d4f572ebc3bb42cd323d732a8addbc810
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
@@ -58,9 +58,8 @@ public void isEmptyWithSampling() {
Assert.assertEquals(sketch.getEstimate(), 0.0);
Assert.assertEquals(sketch.getUpperBound(1), 0.0);
Assert.assertEquals(sketch.getLowerBound(1), 0.0);
Assert.assertEquals(
(float)(sketch.getThetaLong() / (double) Long.MAX_VALUE), samplingProbability);
Assert.assertEquals((float)sketch.getTheta(), samplingProbability);
Assert.assertEquals(sketch.getThetaLong(), Long.MAX_VALUE);
Assert.assertEquals(sketch.getTheta(), 1.0);
}

@Test
@@ -53,8 +53,8 @@ public void isEmptyWithSampling() {
Assert.assertEquals(sketch.getEstimate(), 0.0);
Assert.assertEquals(sketch.getUpperBound(1), 0.0);
Assert.assertEquals(sketch.getLowerBound(1), 0.0);
Assert.assertEquals((float)(sketch.getThetaLong() / (double) Long.MAX_VALUE), samplingProbability);
Assert.assertEquals((float)sketch.getTheta(), samplingProbability);
Assert.assertEquals(sketch.getThetaLong(), Long.MAX_VALUE);
Assert.assertEquals(sketch.getTheta(), 1.0);
}

@Test

0 comments on commit 9a60623

Please sign in to comment.