block = (DictionaryBlock) block.getPositions(new int[] {3, 3, 4, 5, 2, 0, 1, 1}, 0, 7); assertTrue(block.isCompact()); block = (DictionaryBlock) block.getPositions(new int[] {0, 1, 2, 3, 4, 5, 6, 6, 5, 4, 3, 2, 1}, 0, 12); assertTrue(block.isCompact()); block = (DictionaryBlock) block.getPositions(new int[] {0, 2, 0, 2, 0}, 0, 5); assertFalse(block.isCompact()); block = (DictionaryBlock) block.getPositions(new int[] {0, 1, 1, 1}, 0, 4); assertTrue(block.isCompact()); block = (DictionaryBlock) block.getPositions(new int[] {1, 1, 1, 1}, 0, 4); assertFalse(block.isCompact()); block = (DictionaryBlock) block.getPositions(new int[] {0}, 0, 1); assertTrue(block.isCompact()); block = (DictionaryBlock) block.getPositions(new int[] {}, 0, 0); assertFalse(block.isCompact()); block = (DictionaryBlock) block.getPositions(new int[] {}, 0, 0); assertTrue(block.isCompact());