diff options
author | David Robillard <d@drobilla.net> | 2018-02-04 20:49:28 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-11-25 09:21:03 +0100 |
commit | 8a315ba8778378c1d9e5f03173a1c0715698a601 (patch) | |
tree | 4cc08ea04d785c246660c1c282d74f0fbc53d8e7 /tests | |
parent | 43e4cba8561d332cdc0fa9d257008dc68bb65a96 (diff) | |
download | serd-8a315ba8778378c1d9e5f03173a1c0715698a601.tar.gz serd-8a315ba8778378c1d9e5f03173a1c0715698a601.tar.bz2 serd-8a315ba8778378c1d9e5f03173a1c0715698a601.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 1e563006..c6fb975a 100644 --- a/tests/serd_test.c +++ b/tests/serd_test.c @@ -254,42 +254,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, |