allow 0.0 score in this test

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1725535 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2016-01-19 14:44:31 +00:00
parent ed7a3a606c
commit 86fd0b215b
1 changed files with 3 additions and 1 deletions

View File

@ -86,7 +86,9 @@ public class TestDocBoost extends LuceneTestCase {
if (VERBOSE) {
System.out.println(searcher.explain(new TermQuery(new Term("field", "word")), i));
}
assertTrue("score: " + scores[i] + " should be > lastScore: " + lastScore, scores[i] > lastScore);
if (scores[i] != 0.0) {
assertTrue("score: " + scores[i] + " should be > lastScore: " + lastScore, scores[i] > lastScore);
}
lastScore = scores[i];
}