relax test's assert for new DFI sim

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1725607 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2016-01-19 20:34:58 +00:00
parent 1de59cad5d
commit 4d445b7235
1 changed files with 2 additions and 2 deletions

View File

@ -57,8 +57,8 @@ public class TestSearch extends LuceneTestCase {
ScoreDoc[] hits = searcher.search(q, 1000).scoreDocs; ScoreDoc[] hits = searcher.search(q, 1000).scoreDocs;
assertEquals(1, hits.length); assertEquals(1, hits.length);
assertTrue("score is not negative: " + hits[0].score, assertTrue("score is positive: " + hits[0].score,
hits[0].score < 0); hits[0].score <= 0);
Explanation explain = searcher.explain(q, hits[0].doc); Explanation explain = searcher.explain(q, hits[0].doc);
assertEquals("score doesn't match explanation", assertEquals("score doesn't match explanation",