From caf71ec081fe4067fff5f1a172e7a2e4bbe7eb0f Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Tue, 7 Feb 2012 15:30:18 -0800 Subject: Add tests and fix bugs for diff whitespace options Once I added tests for the whitespace handling options of diff, I realized that there were some bugs. This fixes those and adds the new tests into the test suite. --- tests-clar/diff/diff_helpers.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests-clar/diff/diff_helpers.c') diff --git a/tests-clar/diff/diff_helpers.c b/tests-clar/diff/diff_helpers.c index b32c4bc2d..80c648033 100644 --- a/tests-clar/diff/diff_helpers.c +++ b/tests-clar/diff/diff_helpers.c @@ -72,9 +72,11 @@ int diff_line_fn( e->line_ctxt++; break; case GIT_DIFF_LINE_ADDITION: + case GIT_DIFF_LINE_ADD_EOFNL: e->line_adds++; break; case GIT_DIFF_LINE_DELETION: + case GIT_DIFF_LINE_DEL_EOFNL: e->line_dels++; break; default: -- cgit v1.2.1