diff options
author | Jia Tan <jiat0218@gmail.com> | 2023-08-28 21:54:41 +0800 |
---|---|---|
committer | Jia Tan <jiat0218@gmail.com> | 2023-10-26 06:22:24 +0800 |
commit | 4a4180ce74788e97e90b9aab579bfd7c6dce3f59 (patch) | |
tree | 2333a0df5030bca2a6aa22211941516bf2f69d96 | |
parent | Update THANKS. (diff) | |
download | xz-4a4180ce74788e97e90b9aab579bfd7c6dce3f59.tar.xz |
Tests: Improve comments in test_index.c.
Diffstat (limited to '')
-rw-r--r-- | tests/test_index.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_index.c b/tests/test_index.c index 9732e55f..a1269204 100644 --- a/tests/test_index.c +++ b/tests/test_index.c @@ -141,18 +141,18 @@ test_lzma_index_append(void) assert_lzma_ret(lzma_index_append(idx, NULL, UNPADDED_SIZE_MAX, 1), LZMA_DATA_ERROR); - // Test compressed size growing too large. + // Test uncompressed size growing too large. // Should result in LZMA_DATA_ERROR. assert_lzma_ret(lzma_index_append(idx, NULL, UNPADDED_SIZE_MIN, LZMA_VLI_MAX), LZMA_OK); assert_lzma_ret(lzma_index_append(idx, NULL, UNPADDED_SIZE_MIN, 1), LZMA_DATA_ERROR); + lzma_index_end(idx, NULL); + // Currently not testing for error case when the size of the Index // grows too large to be stored. This was not practical to test for // since too many Blocks needed to be created to cause this. - - lzma_index_end(idx, NULL); } |