summaryrefslogtreecommitdiff
path: root/tests/pack/indexer.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2014-07-01 14:09:01 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2014-07-01 14:40:16 -0400
commit0cee70ebb7297f155129e0d05f5a23be82231256 (patch)
tree6d98f55d737f4187e58f2a180ffb75f05b98bfba /tests/pack/indexer.c
parente1fc03c9baea9864dec90d0aef7aadcc2ff20576 (diff)
downloadlibgit2-0cee70ebb7297f155129e0d05f5a23be82231256.tar.gz
Introduce cl_assert_equal_oid
Diffstat (limited to 'tests/pack/indexer.c')
-rw-r--r--tests/pack/indexer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/pack/indexer.c b/tests/pack/indexer.c
index 084f8e666..49a106d98 100644
--- a/tests/pack/indexer.c
+++ b/tests/pack/indexer.c
@@ -74,7 +74,7 @@ void test_pack_indexer__fix_thin(void)
/* Store the missing base into your ODB so the indexer can fix the pack */
cl_git_pass(git_odb_write(&id, odb, base_obj, base_obj_len, GIT_OBJ_BLOB));
git_oid_fromstr(&should_id, "e68fe8129b546b101aee9510c5328e7f21ca1d18");
- cl_assert(!git_oid_cmp(&id, &should_id));
+ cl_assert_equal_oid(&should_id, &id);
cl_git_pass(git_indexer_new(&idx, ".", 0, odb, NULL, NULL));
cl_git_pass(git_indexer_append(idx, thin_pack, thin_pack_len, &stats));
@@ -86,7 +86,7 @@ void test_pack_indexer__fix_thin(void)
cl_assert_equal_i(stats.local_objects, 1);
git_oid_fromstr(&should_id, "11f0f69b334728fdd8bc86b80499f22f29d85b15");
- cl_assert(!git_oid_cmp(git_indexer_hash(idx), &should_id));
+ cl_assert_equal_oid(&should_id, git_indexer_hash(idx));
git_indexer_free(idx);
git_odb_free(odb);