Skip to content

Commit 3abbe20

Browse files
committed
Fix getRSE tests
1 parent 011f775 commit 3abbe20

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/test/java/org/apache/datasketches/req/ReqSketchOtherTest.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@
3333
import org.apache.datasketches.common.SketchesArgumentException;
3434
import org.apache.datasketches.quantilescommon.FloatsSortedView;
3535
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;
3936
import org.testng.annotations.Test;
4037

4138
/**
@@ -114,7 +111,7 @@ public void checkEstimationMode() {
114111
assertEquals(v, 120.0f);
115112
final FloatsSortedView aux = sk.getSortedView();
116113
assertNotNull(aux);
117-
assertTrue(BaseReqSketch.getRSE(sk.getK(), .5, false, 120) > 0);
114+
assertTrue(BaseReqSketch.getRSE(sk.getK(), .5, false, 120) >= 0);
118115
assertTrue(sk.getSerializedSizeBytes() > 0);
119116
}
120117

@@ -185,7 +182,7 @@ public void checkEmpty() {
185182
try { sk.getQuantiles(new double[] {0.5}); fail(); } catch (IllegalArgumentException e) {}
186183
try { sk.getPMF(new float[] {1f}); fail(); } catch (IllegalArgumentException e) {}
187184
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);
189186
assertTrue(sk.getRankUpperBound(0.5, 1) > 0);
190187
}
191188

0 commit comments

Comments
 (0)