updating computeFunctions unit tests

This commit is contained in:
Mark Wolters 2024-01-22 09:10:20 -04:00
parent 748af79e15
commit 97cd55aa60
2 changed files with 2 additions and 8 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}