summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2023-01-11 20:58:31 +0800
committerLasse Collin <lasse.collin@tukaani.org>2023-01-11 17:31:54 +0200
commite3b42bfcb0f67988beee7c7022fed0361282be45 (patch)
tree6905c9ffa2b4ba0633f7ee004031ba93ed67c6fb
parent21625b7e11d004788e40eb5eb88d9d89f65fe347 (diff)
downloadxz-e3b42bfcb0f67988beee7c7022fed0361282be45.tar.gz
Tests: Fix test_filter_flags copy/paste error.
-rw-r--r--tests/test_filter_flags.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_filter_flags.c b/tests/test_filter_flags.c
index 28e75d2..5cfccea 100644
--- a/tests/test_filter_flags.c
+++ b/tests/test_filter_flags.c
@@ -108,7 +108,7 @@ test_lzma_filter_flags_size(void)
// If the BCJ filters are not configured and built, then ARRAY_SIZE()
// will return 0 and cause a warning because the for loop will never
// execute since any unsigned number cannot be < 0 (-Werror=type-limits).
- const uint32_t bcj_array_size = ARRAY_SIZE(bcj_filters_decoders);
+ const uint32_t bcj_array_size = ARRAY_SIZE(bcj_filters_encoders);
for (uint32_t i = 0; i < bcj_array_size; i++) {
assert_lzma_ret(lzma_filter_flags_size(&size,
&bcj_filters_encoders[i]), LZMA_OK);
@@ -220,7 +220,7 @@ test_lzma_filter_flags_encode(void)
.start_offset = 257
};
- const uint32_t bcj_array_size = ARRAY_SIZE(bcj_filters_decoders);
+ const uint32_t bcj_array_size = ARRAY_SIZE(bcj_filters_encoders);
for (uint32_t i = 0; i < bcj_array_size; i++) {
// NULL options should pass for bcj filters
verify_filter_flags_encode(&bcj_filters_encoders[i], true);