From b92b434f5a240a8c149bcf86bbcd1743cd873bcf Mon Sep 17 00:00:00 2001 From: XTao Date: Thu, 9 Jan 2014 11:18:38 +0800 Subject: [PATCH] Add orig & final commit test. --- tests/blame/blame_helpers.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/blame/blame_helpers.c b/tests/blame/blame_helpers.c index d64bb5c4c..56240dbde 100644 --- a/tests/blame/blame_helpers.c +++ b/tests/blame/blame_helpers.c @@ -48,6 +48,9 @@ void check_blame_hunk_index(git_repository *repo, git_blame *blame, int idx, actual, expected); } cl_assert_equal_s(actual, expected); + cl_assert_equal_i(git_oid_cmp(&hunk->final_commit_id, &hunk->orig_commit_id), 0); + + if (strcmp(hunk->orig_path, orig_path)) { hunk_message(idx, hunk, "has mismatched original path (got '%s', expected '%s')\n", hunk->orig_path, orig_path);