]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Tests: test_filter_str: Tweak comments and white space
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 23 Apr 2024 13:26:06 +0000 (16:26 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 21 May 2024 21:12:07 +0000 (00:12 +0300)
(cherry picked from commit 4f6af853bc99904efb8b6c28a0af7b81a8476c1b)

tests/test_filter_str.c

index aac58ddba8f34c2d6bd670b4e60a0cff882d6274..f88404f23b49b7dfcd63303e9c1d0aa802571d0d 100644 (file)
@@ -461,6 +461,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];
 
@@ -599,6 +600,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]);