build fixes

This commit is contained in:
Jonathan Shook 2023-10-05 18:22:48 -05:00
parent 469985de6e
commit 17fb1f54c3
2 changed files with 5 additions and 5 deletions

View File

@ -69,7 +69,7 @@ class ComputeFunctionsLongTest {
public void sanityCheckRecallAndLimitRatioLongs() {
long[] hundo = LongStream.range(0,100).toArray();
for (int i = 0; i < hundo.length; i++) {
for (int i = 1; i < hundo.length; i++) {
long[] partial=LongStream.range(0,i).toArray();
int finalI = i;
assertThat(ComputeFunctions.recall(hundo, partial))
@ -77,7 +77,7 @@ class ComputeFunctionsLongTest {
.isCloseTo((double)partial.length/(double)hundo.length,offset);
assertThat(ComputeFunctions.recall(hundo, hundo, i))
.as(() -> "for full intersection, limit " + finalI +" (K) recall should be fractional/100")
.isCloseTo((double)partial.length/(double)hundo.length,offset);
.isCloseTo(1.0d,offset);
}
}

View File

@ -37,8 +37,8 @@
<javadoc.name>nosqlbench</javadoc.name>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<PROG>nb5</PROG>
<maven.plugin.validation>VERBOSE</maven.plugin.validation>
@ -732,7 +732,7 @@
<configuration>
<rules>
<requireJavaVersion>
<version>[21,)</version>
<version>[17,)</version>
</requireJavaVersion>
</rules>
</configuration>