summaryrefslogtreecommitdiff
path: root/tests-clar/diff/patch.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-02-11 11:44:00 -0800
committerRussell Belfer <rb@github.com>2013-02-11 11:44:00 -0800
commit390a3c81410a219b13aa6f333949c803524c8bd2 (patch)
treeb6487640acf5adb87f5a0f8ee25dedd44df63ffb /tests-clar/diff/patch.c
parente026cfee003e103d79e56983d68a206ae907eada (diff)
parent3ad052218cd03fe58b254f878825e3f0fd4b3054 (diff)
downloadlibgit2-390a3c81410a219b13aa6f333949c803524c8bd2.tar.gz
Merge pull request #1190 from nulltoken/topic/reset-paths
reset: Allow the selective reset of pathspecs
Diffstat (limited to 'tests-clar/diff/patch.c')
-rw-r--r--tests-clar/diff/patch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests-clar/diff/patch.c b/tests-clar/diff/patch.c
index affa761de..18e90f92d 100644
--- a/tests-clar/diff/patch.c
+++ b/tests-clar/diff/patch.c
@@ -251,13 +251,13 @@ static void check_single_patch_stats(
cl_git_pass(git_diff_get_patch(&patch, &delta, diff, 0));
cl_assert_equal_i(GIT_DELTA_MODIFIED, (int)delta->status);
- cl_assert_equal_i(hunks, (int)git_diff_patch_num_hunks(patch));
+ cl_assert_equal_sz(hunks, git_diff_patch_num_hunks(patch));
cl_git_pass(
git_diff_patch_line_stats(NULL, &actual_adds, &actual_dels, patch));
- cl_assert_equal_i(adds, actual_adds);
- cl_assert_equal_i(dels, actual_dels);
+ cl_assert_equal_sz(adds, actual_adds);
+ cl_assert_equal_sz(dels, actual_dels);
git_diff_patch_free(patch);
git_diff_list_free(diff);