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:
Adrien Grand 2013-01-25 09:50:20 +00:00
parent 7456020a3b
commit cee2dd534d
1 changed files with 1 additions and 1 deletions

View File

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