summaryrefslogtreecommitdiff
path: root/tests/odb/loose.c
diff options
context:
space:
mode:
authorSun He <sunheehnus@gmail.com>2014-03-06 11:16:36 +0800
committerSun He <sunheehnus@gmail.com>2014-03-06 11:16:36 +0800
commit6246de93b65fc74cba2e17ab031402adff84433f (patch)
tree676fbb35641726736b0cc8053f73ec9f1ed03d0e /tests/odb/loose.c
parent8384a50a2171f57cc1b8158777b124d2022db94e (diff)
parenta064dc2d0b6206116a35be4b62c58c3c1170d5de (diff)
downloadlibgit2-6246de93b65fc74cba2e17ab031402adff84433f.tar.gz
Merge completed: resolve the conflict with the upstream
Diffstat (limited to 'tests/odb/loose.c')
-rw-r--r--tests/odb/loose.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/odb/loose.c b/tests/odb/loose.c
index a85f1430d..ef7136e36 100644
--- a/tests/odb/loose.c
+++ b/tests/odb/loose.c
@@ -76,9 +76,13 @@ void test_odb_loose__exists(void)
cl_assert(git_odb_exists(odb, &id));
+ cl_assert(git_odb_exists_prefix(&id2, odb, &id, 8));
+ cl_assert(git_oid_equal(&id, &id2));
+
/* Test for a non-existant object */
cl_git_pass(git_oid_fromstr(&id2, "8b137891791fe96927ad78e64b0aad7bded08baa"));
cl_assert(!git_odb_exists(odb, &id2));
+ cl_assert_equal_i(GIT_ENOTFOUND, git_odb_exists_prefix(NULL, odb, &id2, 8));
git_odb_free(odb);
}