mirror of https://github.com/apache/lucene.git
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:
parent
1de59cad5d
commit
4d445b7235
|
@ -57,8 +57,8 @@ public class TestSearch extends LuceneTestCase {
|
|||
|
||||
ScoreDoc[] hits = searcher.search(q, 1000).scoreDocs;
|
||||
assertEquals(1, hits.length);
|
||||
assertTrue("score is not negative: " + hits[0].score,
|
||||
hits[0].score < 0);
|
||||
assertTrue("score is positive: " + hits[0].score,
|
||||
hits[0].score <= 0);
|
||||
|
||||
Explanation explain = searcher.explain(q, hits[0].doc);
|
||||
assertEquals("score doesn't match explanation",
|
||||
|
|
Loading…
Reference in New Issue