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:
Michael McCandless 2016-01-18 23:25:21 +00:00
parent e127db28f9
commit 0eeb910292
1 changed files with 3 additions and 3 deletions

View File

@ -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);