mirror of https://github.com/apache/lucene.git
LUCENE-10153: Make errorprone happy.
This commit is contained in:
parent
4c133f435d
commit
7c173b0e1c
|
@ -62,7 +62,7 @@ public class TestWANDScorer extends LuceneTestCase {
|
||||||
assertEquals(
|
assertEquals(
|
||||||
1 << (WANDScorer.FLOAT_MANTISSA_BITS - 1),
|
1 << (WANDScorer.FLOAT_MANTISSA_BITS - 1),
|
||||||
WANDScorer.scaleMaxScore(32f, WANDScorer.scalingFactor(32f)));
|
WANDScorer.scaleMaxScore(32f, WANDScorer.scalingFactor(32f)));
|
||||||
assertEquals(1, WANDScorer.scaleMaxScore(32f, WANDScorer.scalingFactor(1L << 60)));
|
assertEquals(1, WANDScorer.scaleMaxScore(32f, WANDScorer.scalingFactor(Math.scalb(1f, 60))));
|
||||||
assertEquals(
|
assertEquals(
|
||||||
1, WANDScorer.scaleMaxScore(32f, WANDScorer.scalingFactor(Float.POSITIVE_INFINITY)));
|
1, WANDScorer.scaleMaxScore(32f, WANDScorer.scalingFactor(Float.POSITIVE_INFINITY)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue