diff options
author | David Robillard <d@drobilla.net> | 2018-02-04 20:49:28 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-13 15:33:54 -0500 |
commit | 16e8c50a29d8a932fa84a74d0b2a732994116db0 (patch) | |
tree | f0e52e13ddf5d7153897aa0dbf68ba5f20283ef3 /test | |
parent | c4bb9e1ca60fd7e82548aa2e5d72e9ab7efda9ca (diff) | |
download | serd-16e8c50a29d8a932fa84a74d0b2a732994116db0.tar.gz serd-16e8c50a29d8a932fa84a74d0b2a732994116db0.tar.bz2 serd-16e8c50a29d8a932fa84a74d0b2a732994116db0.zip |
Remove serd_uri_to_path()
Diffstat (limited to 'test')
-rw-r--r-- | test/test_uri.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/test/test_uri.c b/test/test_uri.c index f7e1bfab..e0348049 100644 --- a/test/test_uri.c +++ b/test/test_uri.c @@ -50,46 +50,6 @@ test_file_uri(const char* hostname, serd_node_free(&node); } -#if defined(__GNUC__) -# pragma GCC diagnostic push -# pragma GCC diagnostic ignored "-Wdeprecated-declarations" -#endif - -static void -test_uri_to_path(void) -{ - const uint8_t* uri = (const uint8_t*)"file:///home/user/foo.ttl"; - assert(!strcmp((const char*)serd_uri_to_path(uri), "/home/user/foo.ttl")); - - uri = (const uint8_t*)"file://localhost/home/user/foo.ttl"; - assert(!strcmp((const char*)serd_uri_to_path(uri), "/home/user/foo.ttl")); - - uri = (const uint8_t*)"file:illegal/file/uri"; - assert(!serd_uri_to_path(uri)); - - uri = (const uint8_t*)"file:///c:/awful/system"; - assert(!strcmp((const char*)serd_uri_to_path(uri), "c:/awful/system")); - - uri = (const uint8_t*)"file:///c:awful/system"; - assert(!strcmp((const char*)serd_uri_to_path(uri), "/c:awful/system")); - - uri = (const uint8_t*)"file:///0/1"; - assert(!strcmp((const char*)serd_uri_to_path(uri), "/0/1")); - - uri = (const uint8_t*)"C:\\Windows\\Sucks"; - assert(!strcmp((const char*)serd_uri_to_path(uri), "C:\\Windows\\Sucks")); - - uri = (const uint8_t*)"C|/Windows/Sucks"; - assert(!strcmp((const char*)serd_uri_to_path(uri), "C|/Windows/Sucks")); - - uri = (const uint8_t*)"http://example.org/path"; - assert(!serd_uri_to_path(uri)); -} - -#if defined(__GNUC__) -# pragma GCC diagnostic pop -#endif - static void test_uri_parsing(void) { @@ -175,7 +135,6 @@ test_relative_uri(void) int main(void) { - test_uri_to_path(); test_uri_parsing(); test_uri_from_string(); test_relative_uri(); |