From df1659a6c8367db69e82e2ea59ad5f959cf4e615 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sat, 27 Apr 2024 14:51:52 +0300 Subject: [PATCH] Tests: test_index: Verify also iter.block.number_in_stream (cherry picked from commit 12313a3b6596cdcf012e180597f84d231f8730d3) --- tests/test_index.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_index.c b/tests/test_index.c index be0ea4fb..f6369221 100644 --- a/tests/test_index.c +++ b/tests/test_index.c @@ -701,6 +701,7 @@ test_lzma_index_iter_rewind(void) assert_false(lzma_index_iter_next(&iter, LZMA_INDEX_ITER_BLOCK)); 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 @@ -711,6 +712,7 @@ test_lzma_index_iter_rewind(void) assert_false(lzma_index_iter_next(&iter, LZMA_INDEX_ITER_BLOCK)); 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,