summaryrefslogtreecommitdiff
path: root/xdelta3/xdelta3-test.h
diff options
context:
space:
mode:
Diffstat (limited to 'xdelta3/xdelta3-test.h')
-rw-r--r--xdelta3/xdelta3-test.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/xdelta3/xdelta3-test.h b/xdelta3/xdelta3-test.h
index 1c46742..3b737e7 100644
--- a/xdelta3/xdelta3-test.h
+++ b/xdelta3/xdelta3-test.h
@@ -1680,7 +1680,7 @@ test_command_line_arguments (xd3_stream *stream, int ignore)
1680 return XD3_INTERNAL; 1680 return XD3_INTERNAL;
1681 } 1681 }
1682 1682
1683 if (ratio <= TEST_ADD_RATIO * (1.0 - TEST_EPSILON)) 1683 if (ratio <= TEST_ADD_RATIO * (1.0 - 2 * TEST_EPSILON))
1684 { 1684 {
1685 DP(RINT "xdelta3: test encode with size ratio %.4f, " 1685 DP(RINT "xdelta3: test encode with size ratio %.4f, "
1686 "expected > %.4f\n", 1686 "expected > %.4f\n",
@@ -2402,8 +2402,8 @@ static const string_match_test match_tests[] =
2402 { "123 23 XYZ 123 XYZ", SM_NONE, "C11/4@0" }, 2402 { "123 23 XYZ 123 XYZ", SM_NONE, "C11/4@0" },
2403 { "123 23 XYZ 123 XYZ", SM_LAZY, "C11/4@0 C12/6@4" }, 2403 { "123 23 XYZ 123 XYZ", SM_LAZY, "C11/4@0 C12/6@4" },
2404 2404
2405 /* trylazy: no lazy matches unless there are at least two characters beyond the first 2405 /* trylazy: no lazy matches unless there are at least two characters beyond
2406 * match */ 2406 * the first match */
2407 { "2123_121212", SM_LAZY, "C7/4@5" }, 2407 { "2123_121212", SM_LAZY, "C7/4@5" },
2408 { "2123_1212123", SM_LAZY, "C7/4@5" }, 2408 { "2123_1212123", SM_LAZY, "C7/4@5" },
2409 { "2123_1212123_", SM_LAZY, "C7/4@5 C8/5@0" }, 2409 { "2123_1212123_", SM_LAZY, "C7/4@5 C8/5@0" },
@@ -2416,12 +2416,12 @@ static const string_match_test match_tests[] =
2416 /* lazy run: check a run overlapped by a longer copy */ 2416 /* lazy run: check a run overlapped by a longer copy */
2417 { "11111112 111111112 1", SM_LAZY, "C1/6@0 R9/8 C10/10@0" }, 2417 { "11111112 111111112 1", SM_LAZY, "C1/6@0 R9/8 C10/10@0" },
2418 2418
2419 /* lazy match: match_length,run_l >= min_match tests, shouldn't get any copies within 2419 /* lazy match: match_length,run_l >= min_match tests, shouldn't get any
2420 * the run, no run within the copy */ 2420 * copies within the run, no run within the copy */
2421 { "^________^________ ", SM_LAZY, "R1/8 C9/9@0" }, 2421 { "^________^________ ", SM_LAZY, "R1/8 C9/9@0" },
2422 2422
2423 /* chain depth: it only goes back 10. this checks that the 10th match hits and the 11th 2423 /* chain depth: it only goes back 10. this checks that the 10th match hits
2424 * misses. */ 2424 * and the 11th misses. */
2425 { "1234 1234_1234-1234=1234+1234[1234]1234{1234}1234<1234 ", SM_NONE, 2425 { "1234 1234_1234-1234=1234+1234[1234]1234{1234}1234<1234 ", SM_NONE,
2426 "C5/4@0 C10/4@5 C15/4@10 C20/4@15 C25/4@20 C30/4@25 C35/4@30 C40/4@35 C45/4@40 C50/5@0" }, 2426 "C5/4@0 C10/4@5 C15/4@10 C20/4@15 C25/4@20 C30/4@25 C35/4@30 C40/4@35 C45/4@40 C50/5@0" },
2427 { "1234 1234_1234-1234=1234+1234[1234]1234{1234}1234<1234>1234 ", SM_NONE, 2427 { "1234 1234_1234-1234=1234+1234[1234]1234{1234}1234<1234>1234 ", SM_NONE,