From 78ed9decdf54d6185d3d3d1ef8784f5978f81422 Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Tue, 30 Jul 2019 12:10:19 +0200 Subject: Add missing-section tests to context-format test case * tests/context-format: Add tests with a missing pattern and a missing replacement section in a hunk. Patch should fill in the missing sections from the existing sections. --- tests/context-format | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 84 insertions(+), 2 deletions(-) diff --git a/tests/context-format b/tests/context-format index 8143448..b3276ff 100644 --- a/tests/context-format +++ b/tests/context-format @@ -11,6 +11,46 @@ use_tmpdir # ============================================================== +printf "%s\n" 1 2 4 5 > a +cat > ab.diff < a +cat > ab.diff < a + cat > ab.diff < ab.diff < a check 'patch < ab.diff' < ba.diff < a + cat > ab.diff < ab.diff < a check 'patch < ab.diff' < ba.diff <