From f9421dd847e3a80d3890a1e41833e5bbfcfbcc86 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 24 Jun 2019 23:40:33 +0900 Subject: test: add more testcases for prefix_roota() --- src/test/test-path-util.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/test/test-path-util.c b/src/test/test-path-util.c index 7ef30ffc00..3e91c87eea 100644 --- a/src/test/test-path-util.c +++ b/src/test/test-path-util.c @@ -403,6 +403,9 @@ static void test_prefix_root(void) { test_prefix_root_one("///", "/foo", "/foo"); test_prefix_root_one("/", "////foo", "/foo"); test_prefix_root_one(NULL, "////foo", "/foo"); + test_prefix_root_one("/", "foo", "/foo"); + test_prefix_root_one("", "foo", "foo"); + test_prefix_root_one(NULL, "foo", "foo"); test_prefix_root_one("/foo", "/bar", "/foo/bar"); test_prefix_root_one("/foo", "bar", "/foo/bar"); -- cgit v1.2.3