diff options
author | David Robillard <d@drobilla.net> | 2018-02-04 20:49:28 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-12-30 17:56:22 -0500 |
commit | 9f7d2de1ee0443c1d82a854ac459fc7dbe79749d (patch) | |
tree | 703e6a437d7fc6066e0db83df9c454455e9e88fe /tests | |
parent | 873b05eaedf2c3978cd98268afa6f982a25bc80b (diff) | |
download | serd-9f7d2de1ee0443c1d82a854ac459fc7dbe79749d.tar.gz serd-9f7d2de1ee0443c1d82a854ac459fc7dbe79749d.tar.bz2 serd-9f7d2de1ee0443c1d82a854ac459fc7dbe79749d.zip |
Remove serd_uri_to_path()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/serd_test.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c index d81124ff..94f499d1 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, |