mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-23 07:34:31 -06:00
build fixes
This commit is contained in:
parent
469985de6e
commit
17fb1f54c3
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user