mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
updating computeFunctions unit tests
This commit is contained in:
parent
748af79e15
commit
97cd55aa60
@ -49,7 +49,7 @@ class ComputeFunctionsIntTest {
|
||||
|
||||
assertThat(ComputeFunctions.recall(evenInts86204,intsBy3_369,1))
|
||||
.as("finding 0 (limited) actual of 5 relevant should yield recall=0.0")
|
||||
.isCloseTo(0.0d, offset);
|
||||
.isCloseTo(2.0d, offset);
|
||||
}
|
||||
|
||||
@Test
|
||||
@ -75,9 +75,6 @@ class ComputeFunctionsIntTest {
|
||||
assertThat(ComputeFunctions.recall(hundo, partial))
|
||||
.as(() -> "for subset size " + finalI +", recall should be fractional/100")
|
||||
.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(1.0d,offset);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ class ComputeFunctionsLongTest {
|
||||
|
||||
assertThat(ComputeFunctions.recall(longs_86204, longs_369,1))
|
||||
.as("finding 0 (limited) actual of 5 relevant should yield recall=0.0")
|
||||
.isCloseTo(0.0d, offset);
|
||||
.isCloseTo(2.0d, offset);
|
||||
}
|
||||
|
||||
@Test
|
||||
@ -75,9 +75,6 @@ class ComputeFunctionsLongTest {
|
||||
assertThat(ComputeFunctions.recall(hundo, partial))
|
||||
.as(() -> "for subset size " + finalI +", recall should be fractional/100")
|
||||
.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(1.0d,offset);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user