Commit 17c92beaca15f40bc8456cc38ced40f6921c4640

Russell Belfer 2013-01-29T12:13:24

Test buf join with NULL behavior explicitly

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/tests-clar/core/buffer.c b/tests-clar/core/buffer.c
index 5d9b785..49ab41f 100644
--- a/tests-clar/core/buffer.c
+++ b/tests-clar/core/buffer.c
@@ -457,6 +457,9 @@ void test_core_buffer__8(void)
 
 	git_buf_free(&a);
 
+	check_joinbuf_2(NULL, "", "");
+	check_joinbuf_2(NULL, "a", "a");
+	check_joinbuf_2(NULL, "/a", "/a");
 	check_joinbuf_2("", "", "");
 	check_joinbuf_2("", "a", "a");
 	check_joinbuf_2("", "/a", "/a");