summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXTao <xutao881001@gmail.com>2014-01-09 11:18:38 +0800
committerXTao <xutao881001@gmail.com>2014-01-09 11:18:38 +0800
commitb92b434f5a240a8c149bcf86bbcd1743cd873bcf (patch)
tree5a1670fcae59f7ef85e9c66ffc45b4f1b3dbc788
parenta06474f81dacabd5357be358a73340ee19306956 (diff)
downloadlibgit2-b92b434f5a240a8c149bcf86bbcd1743cd873bcf.tar.gz
Add orig & final commit test.
-rw-r--r--tests/blame/blame_helpers.c3
1 files changed, 3 insertions, 0 deletions
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);