aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2008-09-27 23:01:15 +0300
committerLasse Collin <lasse.collin@tukaani.org>2008-09-27 23:01:15 +0300
commit3a62a5fb85d2eebd8666e64ed5d364d095062858 (patch)
tree46bc92df3e7b7417ecc7ec5601f6265ed9dbf34c /tests
parentUpdated file format specification. It changes the suffix (diff)
downloadxz-3a62a5fb85d2eebd8666e64ed5d364d095062858.tar.xz
Fixed compilation of test_filter_flags.c, which was broken by
1dcecfb09b55157b8653d747963069c8bed74f04.
Diffstat (limited to '')
-rw-r--r--tests/test_filter_flags.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/test_filter_flags.c b/tests/test_filter_flags.c
index 2b53a688..490864f8 100644
--- a/tests/test_filter_flags.c
+++ b/tests/test_filter_flags.c
@@ -145,31 +145,31 @@ test_delta(void)
// Test 2
lzma_options_delta options = {
.type = LZMA_DELTA_TYPE_BYTE,
- .distance = 0
+ .dist = 0
};
known_flags.options = &options;
expect(encode(99));
// Test 3
- options.distance = LZMA_DELTA_DISTANCE_MIN;
+ options.dist = LZMA_DELTA_DIST_MIN;
expect(!encode(3));
expect(!decode(3));
- expect(((lzma_options_delta *)(decoded_flags.options))
- ->distance == options.distance);
+ expect(((lzma_options_delta *)(decoded_flags.options))->dist
+ == options.dist);
free(decoded_flags.options);
// Test 4
- options.distance = LZMA_DELTA_DISTANCE_MAX;
+ options.dist = LZMA_DELTA_DIST_MAX;
expect(!encode(3));
expect(!decode(3));
- expect(((lzma_options_delta *)(decoded_flags.options))
- ->distance == options.distance);
+ expect(((lzma_options_delta *)(decoded_flags.options))->dist
+ == options.dist);
free(decoded_flags.options);
// Test 5
- options.distance = LZMA_DELTA_DISTANCE_MAX + 1;
+ options.dist = LZMA_DELTA_DIST_MAX + 1;
expect(encode(99));
}
#endif