Commit 8a8e312792807dda38fbe417ec5d511f767f3ace

Jacques Germishuys 2014-04-08T16:20:49

Added a no path test for git_graph_descendant_of

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/tests/graph/descendant_of.c b/tests/graph/descendant_of.c
index ffdd0cf..8e9952a 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));
+}