mirror of https://git.tukaani.org/xz.git
Tests: test_index: Verify also iter.block.number_in_stream
(cherry picked from commit 12313a3b65
)
This commit is contained in:
parent
e82a20c5c1
commit
189251f5d2
|
@ -703,6 +703,7 @@ test_lzma_index_iter_rewind(void)
|
||||||
assert_false(lzma_index_iter_next(&iter,
|
assert_false(lzma_index_iter_next(&iter,
|
||||||
LZMA_INDEX_ITER_BLOCK));
|
LZMA_INDEX_ITER_BLOCK));
|
||||||
assert_uint_eq(iter.block.number_in_file, i + 1);
|
assert_uint_eq(iter.block.number_in_file, i + 1);
|
||||||
|
assert_uint_eq(iter.block.number_in_stream, i + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rewind back to the beginning and iterate over the Blocks again
|
// Rewind back to the beginning and iterate over the Blocks again
|
||||||
|
@ -713,6 +714,7 @@ test_lzma_index_iter_rewind(void)
|
||||||
assert_false(lzma_index_iter_next(&iter,
|
assert_false(lzma_index_iter_next(&iter,
|
||||||
LZMA_INDEX_ITER_BLOCK));
|
LZMA_INDEX_ITER_BLOCK));
|
||||||
assert_uint_eq(iter.block.number_in_file, i + 1);
|
assert_uint_eq(iter.block.number_in_file, i + 1);
|
||||||
|
assert_uint_eq(iter.block.number_in_stream, i + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Next concatenate two more lzma_indexes, iterate over them,
|
// Next concatenate two more lzma_indexes, iterate over them,
|
||||||
|
|
Loading…
Reference in New Issue