From de303e914bc3836e74a798deb211bf9b1ee8c325 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 20 Jul 2020 22:03:51 -0500 Subject: patch fuzz: Always output original file's ' ' context lines, not from hunk. --- tests/patch.test | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'tests') diff --git a/tests/patch.test b/tests/patch.test index 42eed937..5cc60014 100755 --- a/tests/patch.test +++ b/tests/patch.test @@ -86,3 +86,34 @@ testing "quoted name" "patch > /dev/null && cat 'fruit bat'" \ +hello ' # todo bork bork2 + +# We hit a bug, test the bugfix. +testing "fuzz" "patch > /dev/null && cat input" \ +"blah blah + */ +package org.yaml.snakeyaml.representer; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.Iterator; +" "blah blah + */ +package org.yaml.snakeyaml.representer; + +import java.beans.IntrospectionException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.Iterator; +" "--- a/x/input ++++ b/x/input +@@ -15,7 +15,6 @@ + */ + package org.yaml.snakeyaml.representer; + +-import java.beans.IntrospectionException; + import java.util.ArrayList; + import java.util.Arrays; + import java.util.Iterator; +" -- cgit v1.2.3