diff options
author | David Robillard <d@drobilla.net> | 2018-02-04 20:49:28 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-03-07 15:32:23 -0500 |
commit | 96bcba9cd94879794de477ae7c5c04971fbd6f32 (patch) | |
tree | ced8ec83621bb2ac6f90fc1d9fc0e5b7f38e2c28 /test | |
parent | b9d0b9f058807d7253e88d37822c47b5462b65ea (diff) | |
download | serd-96bcba9cd94879794de477ae7c5c04971fbd6f32.tar.gz serd-96bcba9cd94879794de477ae7c5c04971fbd6f32.tar.bz2 serd-96bcba9cd94879794de477ae7c5c04971fbd6f32.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(); |