mirror of https://github.com/apache/lucene.git
Relax scores comparisons in TestBooleanRewrites.
This commit is contained in:
parent
af88e7f54d
commit
36e997d45c
|
@ -424,7 +424,7 @@ public class TestBooleanRewrites extends LuceneTestCase {
|
||||||
for (ScoreDoc scoreDoc : td2.scoreDocs) {
|
for (ScoreDoc scoreDoc : td2.scoreDocs) {
|
||||||
final float expectedScore = expectedScores.get(scoreDoc.doc);
|
final float expectedScore = expectedScores.get(scoreDoc.doc);
|
||||||
final float actualScore = scoreDoc.score;
|
final float actualScore = scoreDoc.score;
|
||||||
assertEquals(expectedScore, actualScore, 10e-5);
|
assertEquals(expectedScore, actualScore, expectedScore / 100); // error under 1%
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue