From: Stefano Lattarini Date: Wed, 14 Mar 2012 21:03:04 GMT Subject: Re: [PATCH v3 1/3] Demonstrate a bug in --word-diff where diff.*.wordregex is "sticky" Message-ID: <4F610788.3090604@gmail.com> In-Reply-To: <4F60F67D.9050003@kdbg.org> On 03/14/2012 08:50 PM, Johannes Sixt wrote: > The test case applies a custom wordRegex to one file in a diff, and expects > that the default word splitting applies to the second file in the diff. > But the custom wordRegex is also incorrectly used for the second file. > > Helped-by: Thomas Rast > Signed-off-by: Johannes Sixt > --- > Changes in this round, where I do not resend 2/3 and 3/3: > > - Use test_unconfig. > - Use compare_diff_patch to check the result. > - Fix a broken && chain at the end of the last test. > - Name the files a.tex and z.tex as per your suggestion. > But Junio suggested using 'z.txt' (not 'z.tex'); quoting his last message: The use of files "a" and "z" as an example of pair of a tex and non tex input makes the test look overly artificial (why not a.tex vs z.txt or something?), but other than that, looks cleanly done. Regards, Stefano