From: Lasse Collin Date: Tue, 23 Apr 2024 13:26:06 +0000 (+0300) Subject: Tests: test_filter_str: Tweak comments and white space X-Git-Tag: v5.7.1alpha~376 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f6af853bc99904efb8b6c28a0af7b81a8476c1b;p=thirdparty%2Fxz.git Tests: test_filter_str: Tweak comments and white space --- diff --git a/tests/test_filter_str.c b/tests/test_filter_str.c index 94296098..c146270b 100644 --- a/tests/test_filter_str.c +++ b/tests/test_filter_str.c @@ -460,6 +460,7 @@ test_lzma_str_from_filters(void) lzma_options_lzma opts; assert_false(lzma_lzma_preset(&opts, LZMA_PRESET_DEFAULT)); + // Test with too many Filters (array terminated after 4+ filters). lzma_filter oversized_filters[LZMA_FILTERS_MAX + 2]; @@ -607,6 +608,8 @@ test_lzma_str_list_filters(void) assert_lzma_ret(lzma_str_list_filters(&str, LZMA_VLI_UNKNOWN, LZMA_STR_ENCODER, NULL), LZMA_OK); + // NOTE: Just checking for "contains" is a bit weak check as + // "arm" matches "armthumb" and "arm64" too. for (uint32_t i = 0; i < ARRAY_SIZE(supported_encoders); i++) assert_str_contains(str, supported_encoders[i]);