]> git.proxmox.com Git - libgit2.git/commitdiff
Added a no path test for git_graph_descendant_of
authorJacques Germishuys <jacquesg@striata.com>
Tue, 8 Apr 2014 14:20:49 +0000 (16:20 +0200)
committerJacques Germishuys <jacquesg@striata.com>
Tue, 8 Apr 2014 14:32:06 +0000 (16:32 +0200)
tests/graph/descendant_of.c

index ffdd0cfc8504d7c464add5b718de8233cf850b02..8e9952a09372b4ebd992bab6c89cd79dd295fb71 100644 (file)
@@ -45,3 +45,11 @@ void test_graph_descendant_of__returns_correct_result(void)
        git_commit_free(other);
 
 }
+
+void test_graph_descendant_of__nopath(void)
+{
+       git_oid oid;
+
+       git_oid_fromstr(&oid, "e90810b8df3e80c413d903f631643c716887138d");
+       cl_assert_equal_i(0, git_graph_descendant_of(_repo, git_commit_id(commit), &oid));
+}