test: add more testcases for prefix_roota()
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user