aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2022-12-30 19:36:49 +0200
committerJia Tan <jiat0218@gmail.com>2023-01-05 00:28:01 +0800
commit8791826f31733fda0a13b411c2ed930faaeb25aa (patch)
tree88d5ff965c254baac8b50bc52b641487c03e7803 /tests
parentxz: Includes <time.h> and <sys/time.h> conditionally in mytime.c. (diff)
downloadxz-8791826f31733fda0a13b411c2ed930faaeb25aa.tar.xz
Tests: Clarify a comment in test_lzip_decoder.c.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_lzip_decoder.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test_lzip_decoder.c b/tests/test_lzip_decoder.c
index a5495bf9..306de747 100644
--- a/tests/test_lzip_decoder.c
+++ b/tests/test_lzip_decoder.c
@@ -19,8 +19,12 @@
#define DECODE_CHUNK_SIZE 1024
-// Avoiding using data buffers so we don't have to store the data buffers
-// as large hex strings. Instead, store the CRC32 value of the expected data.
+// The uncompressed data in the test files are short US-ASCII strings.
+// The tests check if the decompressed output is what it is expected to be.
+// Storing the strings here as text would break the tests on EBCDIC systems
+// and storing the strings as an array of hex values is inconvenient, so
+// store the CRC32 values of the expected data instead.
+//
// CRC32 value of "Hello\nWorld\n"
static const uint32_t hello_world_crc = 0x15A2A343;