diff options
author | Jia Tan <jiat0218@gmail.com> | 2022-06-16 17:32:19 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2022-06-16 17:39:59 +0300 |
commit | 86a30b0255d8064169fabfd213d907016d2f9f2a (patch) | |
tree | 34fc8c736963e6f73084e842969ea7c2e9541120 /tests/tests.h | |
parent | Tests: Use char[][24] array for enum_strings_lzma_ret. (diff) | |
download | xz-86a30b0255d8064169fabfd213d907016d2f9f2a.tar.xz |
Tests: Add more tests into test_check.
Diffstat (limited to '')
-rw-r--r-- | tests/tests.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/tests.h b/tests/tests.h index b76a448e..4d6169b0 100644 --- a/tests/tests.h +++ b/tests/tests.h @@ -53,6 +53,29 @@ static const char enum_strings_lzma_ret[][24] = { assert_enum_eq(test_expr, ref_val, enum_strings_lzma_ret) +static const char enum_strings_lzma_check[][24] = { + "LZMA_CHECK_NONE", + "LZMA_CHECK_CRC32", + "LZMA_CHECK_UNKNOWN_2", + "LZMA_CHECK_UNKNOWN_3", + "LZMA_CHECK_CRC64", + "LZMA_CHECK_UNKNOWN_5", + "LZMA_CHECK_UNKNOWN_6", + "LZMA_CHECK_UNKNOWN_7", + "LZMA_CHECK_UNKNOWN_8", + "LZMA_CHECK_UNKNOWN_9", + "LZMA_CHECK_SHA256", + "LZMA_CHECK_UNKNOWN_11", + "LZMA_CHECK_UNKNOWN_12", + "LZMA_CHECK_UNKNOWN_13", + "LZMA_CHECK_UNKNOWN_14", + "LZMA_CHECK_UNKNOWN_15", +}; + +#define assert_lzma_check(test_expr, ref_val) \ + assert_enum_eq(test_expr, ref_val, enum_strings_lzma_check) + + static inline bool coder_loop(lzma_stream *strm, uint8_t *in, size_t in_size, uint8_t *out, size_t out_size, |