diff options
author | David Robillard <d@drobilla.net> | 2020-08-04 16:07:48 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-06 17:34:19 +0200 |
commit | 18c8af55e63653c74d58137cd12434f1213f4230 (patch) | |
tree | 902c20f451ab01b30f91d218a9a291fb3190b085 /test/test_string.c | |
parent | dd521d78d1959d694e6e5a565a37e9693756cb00 (diff) | |
download | lilv-18c8af55e63653c74d58137cd12434f1213f4230.tar.gz lilv-18c8af55e63653c74d58137cd12434f1213f4230.tar.bz2 lilv-18c8af55e63653c74d58137cd12434f1213f4230.zip |
Rename some filename utilities for clarity
Loosely inspired by Python and the std::filesystem API.
Diffstat (limited to 'test/test_string.c')
-rw-r--r-- | test/test_string.c | 16 |
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); |