LUCENE-10153: Make errorprone happy.

This commit is contained in:
Adrien Grand 2022-04-20 16:47:34 +02:00
parent 4c133f435d
commit 7c173b0e1c
1 changed files with 1 additions and 1 deletions

View File

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