t4034: add tests showing problematic cpp tokenizations
commit3e063de46e6270606e058b96bfcc0baebc4aea81
authorJohannes Sixt <j6t@kdbg.org>
Fri, 8 Oct 2021 19:09:54 +0000 (8 19:09 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Oct 2021 20:04:07 +0000 (8 13:04 -0700)
tree414a5dff81f7d2a1e84d670b04d405d7a4219154
parent1cf93847c1edf3128f3a2fd87db6a490470ce4ec
t4034: add tests showing problematic cpp tokenizations

The word regex is too loose and matches long streaks of characters
that should actually be separate tokens.  Add these problematic test
cases. Separate the lines with text that will remain identical in the
pre- and post-image so that the diff algorithm will not lump removals
and additions of consecutive lines together. This makes the expected
output easier to read.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4034/cpp/expect
t/t4034/cpp/post
t/t4034/cpp/pre