mirror of https://github.com/apache/lucene.git
Fix test bug.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1438404 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7456020a3b
commit
cee2dd534d
|
@ -970,10 +970,10 @@ public class TestPackedInts extends LuceneTestCase {
|
||||||
|
|
||||||
in1.seek(0L);
|
in1.seek(0L);
|
||||||
final BlockPackedReader reader = new BlockPackedReader(in1, PackedInts.VERSION_CURRENT, blockSize, valueCount, random().nextBoolean());
|
final BlockPackedReader reader = new BlockPackedReader(in1, PackedInts.VERSION_CURRENT, blockSize, valueCount, random().nextBoolean());
|
||||||
|
assertEquals(in1.getFilePointer(), in1.length());
|
||||||
for (i = 0; i < valueCount; ++i) {
|
for (i = 0; i < valueCount; ++i) {
|
||||||
assertEquals("i=" + i, values[i], reader.get(i));
|
assertEquals("i=" + i, values[i], reader.get(i));
|
||||||
}
|
}
|
||||||
assertEquals(in1.getFilePointer(), in1.length());
|
|
||||||
in1.close();
|
in1.close();
|
||||||
dir.close();
|
dir.close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue