|
33 | 33 | import org.apache.datasketches.common.SketchesArgumentException; |
34 | 34 | import org.apache.datasketches.quantilescommon.FloatsSortedView; |
35 | 35 | import org.apache.datasketches.quantilescommon.InequalitySearch; |
36 | | -import org.apache.datasketches.req.BaseReqSketch; |
37 | | -import org.apache.datasketches.req.ReqSketch; |
38 | | -import org.apache.datasketches.req.ReqSketchBuilder; |
39 | 36 | import org.testng.annotations.Test; |
40 | 37 |
|
41 | 38 | /** |
@@ -114,7 +111,7 @@ public void checkEstimationMode() { |
114 | 111 | assertEquals(v, 120.0f); |
115 | 112 | final FloatsSortedView aux = sk.getSortedView(); |
116 | 113 | assertNotNull(aux); |
117 | | - assertTrue(BaseReqSketch.getRSE(sk.getK(), .5, false, 120) > 0); |
| 114 | + assertTrue(BaseReqSketch.getRSE(sk.getK(), .5, false, 120) >= 0); |
118 | 115 | assertTrue(sk.getSerializedSizeBytes() > 0); |
119 | 116 | } |
120 | 117 |
|
@@ -185,7 +182,7 @@ public void checkEmpty() { |
185 | 182 | try { sk.getQuantiles(new double[] {0.5}); fail(); } catch (IllegalArgumentException e) {} |
186 | 183 | try { sk.getPMF(new float[] {1f}); fail(); } catch (IllegalArgumentException e) {} |
187 | 184 | try { sk.getCDF(new float[] {1f}); fail(); } catch (IllegalArgumentException e) {} |
188 | | - assertTrue(BaseReqSketch.getRSE(50, 0.5, true, 0) > 0); |
| 185 | + assertTrue(BaseReqSketch.getRSE(50, 0.5, true, 0) >= 0); |
189 | 186 | assertTrue(sk.getRankUpperBound(0.5, 1) > 0); |
190 | 187 | } |
191 | 188 |
|
|
0 commit comments