summaryrefslogtreecommitdiffstats
path: root/test/test_string.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_string.c')
-rw-r--r--test/test_string.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/test_string.c b/test/test_string.c
index 0bad915..d782c08 100644
--- a/test/test_string.c
+++ b/test/test_string.c
@@ -36,21 +36,21 @@ main(void)
{
char* s = NULL;
- assert(!strcmp((s = lilv_dirname("/foo/bar")), "/foo"));
+ assert(!strcmp((s = lilv_path_parent("/foo/bar")), "/foo"));
free(s);
- assert(!strcmp((s = lilv_dirname("/foo/bar/")), "/foo"));
+ assert(!strcmp((s = lilv_path_parent("/foo/bar/")), "/foo"));
free(s);
- assert(!strcmp((s = lilv_dirname("/foo///bar/")), "/foo"));
+ assert(!strcmp((s = lilv_path_parent("/foo///bar/")), "/foo"));
free(s);
- assert(!strcmp((s = lilv_dirname("/foo///bar//")), "/foo"));
+ assert(!strcmp((s = lilv_path_parent("/foo///bar//")), "/foo"));
free(s);
- assert(!strcmp((s = lilv_dirname("foo")), "."));
+ assert(!strcmp((s = lilv_path_parent("foo")), "."));
free(s);
- assert(!strcmp((s = lilv_dirname("/foo")), "/"));
+ assert(!strcmp((s = lilv_path_parent("/foo")), "/"));
free(s);
- assert(!strcmp((s = lilv_dirname("/")), "/"));
+ assert(!strcmp((s = lilv_path_parent("/")), "/"));
free(s);
- assert(!strcmp((s = lilv_dirname("//")), "/"));
+ assert(!strcmp((s = lilv_path_parent("//")), "/"));
free(s);
assert(!strcmp((s = lilv_path_relative_to("/a/b", "/a/")), "b"));
free(s);