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-12-19 10:21:37 -0500
commita4296843ae313a8371d4464af3b7b59801f16438 (patch)
tree2d1b83677ec7766604e392e9a71634f38a995f69 /tests
parent82af4d09d7f08f25c160971e92d760b0147ad0fa (diff)
downloadserd-a4296843ae313a8371d4464af3b7b59801f16438.tar.gz
serd-a4296843ae313a8371d4464af3b7b59801f16438.tar.bz2
serd-a4296843ae313a8371d4464af3b7b59801f16438.zip
Remove serd_uri_to_path()
Diffstat (limited to 'tests')
-rw-r--r--tests/serd_test.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c
index af1a2110..c15f45d3 100644
--- a/tests/serd_test.c
+++ b/tests/serd_test.c
@@ -302,34 +302,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,
@@ -659,7 +631,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();