diff options
author | David Robillard <d@drobilla.net> | 2018-02-04 20:49:28 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-05-27 18:21:57 +0200 |
commit | 0dc150a9e5dbfed959041e46a1f1310f6bcc9604 (patch) | |
tree | 3ea29763d6fdd8456e89ac1af9c74a78ea052e8c /tests | |
parent | c564145e6f9aebabb5dfe0896e36d2bb6bc8b6b9 (diff) | |
download | serd-0dc150a9e5dbfed959041e46a1f1310f6bcc9604.tar.gz serd-0dc150a9e5dbfed959041e46a1f1310f6bcc9604.tar.bz2 serd-0dc150a9e5dbfed959041e46a1f1310f6bcc9604.zip |
Remove serd_uri_to_path()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/serd_test.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c index cf039e1c..b8f9051e 100644 --- a/tests/serd_test.c +++ b/tests/serd_test.c @@ -246,42 +246,6 @@ main(void) } msg = serd_strerror((SerdStatus)-1); - // Test serd_uri_to_path - - const char* uri = "file:///home/user/foo.ttl"; - if (strcmp(serd_uri_to_path(uri), "/home/user/foo.ttl")) { - FAILF("Bad path %s for %s\n", serd_uri_to_path(uri), uri); - } - uri = "file://localhost/home/user/foo.ttl"; - if (strcmp(serd_uri_to_path(uri), "/home/user/foo.ttl")) { - FAILF("Bad path %s for %s\n", serd_uri_to_path(uri), uri); - } - uri = "file:illegal/file/uri"; - if (serd_uri_to_path(uri)) { - FAILF("Converted invalid URI `%s' to path `%s'\n", - uri, serd_uri_to_path(uri)); - } - uri = "file:///c:/awful/system"; - if (strcmp((const char*)serd_uri_to_path(uri), "c:/awful/system")) { - FAILF("Bad path %s for %s\n", serd_uri_to_path(uri), uri); - } - uri = "file:///c:awful/system"; - if (strcmp((const char*)serd_uri_to_path(uri), "/c:awful/system")) { - FAILF("Bad path %s for %s\n", serd_uri_to_path(uri), uri); - } - uri = "file:///0/1"; - if (strcmp((const char*)serd_uri_to_path(uri), "/0/1")) { - FAILF("Bad path %s for %s\n", serd_uri_to_path(uri), uri); - } - uri = "C:\\Windows\\Sucks"; - if (strcmp((const char*)serd_uri_to_path(uri), "C:\\Windows\\Sucks")) { - FAILF("Bad path %s for %s\n", serd_uri_to_path(uri), uri); - } - uri = "C|/Windows/Sucks"; - if (strcmp((const char*)serd_uri_to_path(uri), "C|/Windows/Sucks")) { - FAILF("Bad path %s for %s\n", serd_uri_to_path(uri), uri); - } - // Test file URI escaping and parsing if (check_file_uri(NULL, "C:/My 100%", true, |