diff options
author | David Robillard <d@drobilla.net> | 2018-02-04 20:49:28 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-27 13:13:58 +0100 |
commit | 45358052fb4fa254f06d0d704a27c5ed9608cc58 (patch) | |
tree | b1a63145d5da80651cb8a7c3d0eb1130897cc8b7 /tests | |
parent | 21c59b99a1c75d58d8aab760105b0535cc04c6f1 (diff) | |
download | serd-45358052fb4fa254f06d0d704a27c5ed9608cc58.tar.gz serd-45358052fb4fa254f06d0d704a27c5ed9608cc58.tar.bz2 serd-45358052fb4fa254f06d0d704a27c5ed9608cc58.zip |
Remove serd_uri_to_path()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/serd_test.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c index 330ca985..f0541593 100644 --- a/tests/serd_test.c +++ b/tests/serd_test.c @@ -337,34 +337,6 @@ test_strerror(void) } static void -test_uri_to_path(void) -{ - const char* uri = "file:///home/user/foo.ttl"; - assert(!strcmp(serd_uri_to_path(uri), "/home/user/foo.ttl")); - - uri = "file://localhost/home/user/foo.ttl"; - assert(!strcmp(serd_uri_to_path(uri), "/home/user/foo.ttl")); - - uri = "file:illegal/file/uri"; - assert(!serd_uri_to_path(uri)); - - uri = "file:///c:/awful/system"; - assert(!strcmp(serd_uri_to_path(uri), "c:/awful/system")); - - uri = "file:///c:awful/system"; - assert(!strcmp(serd_uri_to_path(uri), "/c:awful/system")); - - uri = "file:///0/1"; - assert(!strcmp(serd_uri_to_path(uri), "/0/1")); - - uri = "C:\\Windows\\Sucks"; - assert(!strcmp(serd_uri_to_path(uri), "C:\\Windows\\Sucks")); - - uri = "C|/Windows/Sucks"; - assert(!strcmp(serd_uri_to_path(uri), "C|/Windows/Sucks")); -} - -static void test_uri_parsing(void) { test_file_uri(NULL, "C:/My 100%", true, @@ -670,7 +642,6 @@ main(void) test_blob_to_node(); test_strlen(); test_strerror(); - test_uri_to_path(); test_uri_parsing(); test_node_equals(); test_node_from_string(); |