summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Germishuys <jacquesg@striata.com>2014-04-08 16:20:49 +0200
committerJacques Germishuys <jacquesg@striata.com>2014-04-08 16:32:06 +0200
commit8a8e312792807dda38fbe417ec5d511f767f3ace (patch)
treef416ee831f970d5e598c9ad86cf64ca2e1307c72
parent56f8e06e4985f7b14c1bf7c526a5195ba24fd6ee (diff)
downloadlibgit2-8a8e312792807dda38fbe417ec5d511f767f3ace.tar.gz
Added a no path test for git_graph_descendant_of
-rw-r--r--tests/graph/descendant_of.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/graph/descendant_of.c b/tests/graph/descendant_of.c
index ffdd0cfc8..8e9952a09 100644
--- a/tests/graph/descendant_of.c
+++ b/tests/graph/descendant_of.c
@@ -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));
+}