LUCENE-4803: add test coverage

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1450320 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2013-02-26 18:11:39 +00:00
parent fe0ca7336f
commit 3189f0adea
1 changed files with 8 additions and 0 deletions

View File

@ -628,6 +628,14 @@ public class TestDrillSideways extends FacetTestCase {
}
verifyEquals(dimValues, s, expected, actual, scores);
// Make sure drill down doesn't change score:
TopDocs ddqHits = s.search(ddq, filter, numDocs);
assertEquals(expected.hits.size(), ddqHits.totalHits);
for(int i=0;i<expected.hits.size();i++) {
// Score should be IDENTICAL:
assertEquals(scores.get(expected.hits.get(i).id), ddqHits.scoreDocs[i].score, 0.0f);
}
}
tr.close();