aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-02-04 20:49:28 +0100
committerDavid Robillard <d@drobilla.net>2019-04-13 19:15:32 +0200
commita0b173de316be27bea4cd00cd88c9bf65016df45 (patch)
treea8c9d4a0cb3e6c677660f8335c8dcae25871be4c /tests
parent2cdb106b83c9e471a9a8ee9ba623d9943323e58e (diff)
downloadserd-a0b173de316be27bea4cd00cd88c9bf65016df45.tar.gz
serd-a0b173de316be27bea4cd00cd88c9bf65016df45.tar.bz2
serd-a0b173de316be27bea4cd00cd88c9bf65016df45.zip
Remove serd_uri_to_path()
Diffstat (limited to 'tests')
-rw-r--r--tests/serd_test.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c
index 3f50ca83..81e5a813 100644
--- a/tests/serd_test.c
+++ b/tests/serd_test.c
@@ -224,32 +224,6 @@ main(void)
}
msg = serd_strerror((SerdStatus)-1);
- // Test serd_uri_to_path
-
- 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"));
-
// Test file URI escaping and parsing
if (check_file_uri(NULL, "C:/My 100%", true,