mirror of https://github.com/apache/lucene.git
relax overly anal test scoring asserts
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1725389 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e127db28f9
commit
0eeb910292
|
@ -136,7 +136,7 @@ public class GroupingSearchTest extends LuceneTestCase {
|
|||
assertEquals(2, group.scoreDocs.length);
|
||||
assertEquals(5, group.scoreDocs[0].doc);
|
||||
assertEquals(4, group.scoreDocs[1].doc);
|
||||
assertTrue(group.scoreDocs[0].score > group.scoreDocs[1].score);
|
||||
assertTrue(group.scoreDocs[0].score >= group.scoreDocs[1].score);
|
||||
|
||||
group = groups.groups[1];
|
||||
compareGroupValue("author1", group);
|
||||
|
@ -144,8 +144,8 @@ public class GroupingSearchTest extends LuceneTestCase {
|
|||
assertEquals(0, group.scoreDocs[0].doc);
|
||||
assertEquals(1, group.scoreDocs[1].doc);
|
||||
assertEquals(2, group.scoreDocs[2].doc);
|
||||
assertTrue(group.scoreDocs[0].score > group.scoreDocs[1].score);
|
||||
assertTrue(group.scoreDocs[1].score > group.scoreDocs[2].score);
|
||||
assertTrue(group.scoreDocs[0].score >= group.scoreDocs[1].score);
|
||||
assertTrue(group.scoreDocs[1].score >= group.scoreDocs[2].score);
|
||||
|
||||
group = groups.groups[2];
|
||||
compareGroupValue("author2", group);
|
||||
|
|
Loading…
Reference in New Issue