mirror of https://github.com/apache/lucene.git
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:
parent
ed7a3a606c
commit
86fd0b215b
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue