git/t/t4051/appended2.c
René Scharfe d3621de789 t4051: rewrite, add more tests
Remove the tests that checked against a fixed result and replace them
with more focused checks of desired properties of the created diffs.
That way we get more detailed and meaningful diagnostics.

Store test file contents in files in a subdirectory in order to avoid
cluttering the test script with them.

Use tagged commits to store the changes to test diff -W against instead
of using changes to the worktree.  Use the worktree instead to try and
apply the generated patch in order to validate it.

Document unwanted features: trailing empty lines, too much context for
appended functions, insufficient context at the end with -U0.

Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-05-31 13:07:58 -07:00

35 lines
1.4 KiB
C

printf("Begin of second part\n");
/*
* Lorem ipsum dolor sit amet, consectetuer sadipscing elitr,
* sed diam nonumy eirmod tempor invidunt ut labore et dolore
* magna aliquyam erat, sed diam voluptua. At vero eos et
* accusam et justo duo dolores et ea rebum. Stet clita kasd
* gubergren, no sea takimata sanctus est Lorem ipsum dolor
* sit amet.
*
* Lorem ipsum dolor sit amet, consectetuer sadipscing elitr,
* sed diam nonumy eirmod tempor invidunt ut labore et dolore
* magna aliquyam erat, sed diam voluptua. At vero eos et
* accusam et justo duo dolores et ea rebum. Stet clita kasd
* gubergren, no sea takimata sanctus est Lorem ipsum dolor
* sit amet.
*
* Lorem ipsum dolor sit amet, consectetuer sadipscing elitr,
* sed diam nonumy eirmod tempor invidunt ut labore et dolore
* magna aliquyam erat, sed diam voluptua. At vero eos et
* accusam et justo duo dolores et ea rebum. Stet clita kasd
* gubergren, no sea takimata sanctus est Lorem ipsum dolor
* sit amet.
*
* Lorem ipsum dolor sit amet, consectetuer sadipscing elitr,
* sed diam nonumy eirmod tempor invidunt ut labore et dolore
* magna aliquyam erat, sed diam voluptua. At vero eos et
* accusam et justo duo dolores et ea rebum. Stet clita kasd
* gubergren, no sea takimata sanctus est Lorem ipsum dolor
* sit amet.
*
*/
return 0;
} // End of second part