aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com>2023-07-31 14:02:21 +0200
committerGitHub <noreply@github.com>2023-07-31 20:02:21 +0800
commit42df7c7aa1cca385e509eb33c65136e61890f0bf (patch)
treec537bd6d60be9ac2d71ca3d7f887cde8d8e92ed1 /tests
parentUpdate .gitignore. (diff)
downloadxz-42df7c7aa1cca385e509eb33c65136e61890f0bf.tar.xz
Docs: Fix typos found by codespell
Diffstat (limited to 'tests')
-rw-r--r--tests/test_filter_flags.c4
-rw-r--r--tests/test_index.c2
-rw-r--r--tests/test_vli.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_filter_flags.c b/tests/test_filter_flags.c
index 5cfccea9..6d9f0b93 100644
--- a/tests/test_filter_flags.c
+++ b/tests/test_filter_flags.c
@@ -50,7 +50,7 @@ static lzma_filter bcj_filters_encoders[] = {
#endif
};
-// HAVE_ENCODERS ifdef not termianted here because decoders are
+// HAVE_ENCODERS ifdef not terminated here because decoders are
// only used if encoders are, but encoders can still be used
// even if decoders are not.
@@ -174,7 +174,7 @@ verify_filter_flags_encode(lzma_filter *filter, bool should_encode)
&filter_id_vli_size, size), LZMA_OK);
assert_uint_eq(filter->id, filter_id);
- // Next decode the Size of Properites and ensure it equals
+ // Next decode the Size of Properties and ensure it equals
// the expected size.
// Expected size should be:
// total filter flag length - size of filter id VLI + size of
diff --git a/tests/test_index.c b/tests/test_index.c
index 168e919f..d2c3c0c1 100644
--- a/tests/test_index.c
+++ b/tests/test_index.c
@@ -672,7 +672,7 @@ test_lzma_index_iter_rewind(void)
assert_uint_eq(iter.block.number_in_file, i + 1);
}
- // Rewind back to the begining and iterate over the Blocks again
+ // Rewind back to the beginning and iterate over the Blocks again
lzma_index_iter_rewind(&iter);
// Should be able to re-iterate over the Blocks again.
diff --git a/tests/test_vli.c b/tests/test_vli.c
index e82e7270..996b775b 100644
--- a/tests/test_vli.c
+++ b/tests/test_vli.c
@@ -90,7 +90,7 @@ encode_single_call_mode(lzma_vli input, const uint8_t *expected,
// Helper function for test_lzma_vli_encode
// Encodes an input VLI one byte at a time with the multi call
-// method. Then compares agaist a pre-computed value
+// method. Then compares against a pre-computed value
static void
encode_multi_call_mode(lzma_vli input, const uint8_t *expected,
uint32_t expected_len)