diff options
author | David Robillard <d@drobilla.net> | 2018-02-04 20:49:28 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 16:27:02 -0500 |
commit | 1c59b863d8c2c2d7b5531866586baf232c0047a2 (patch) | |
tree | 2a464c22769631b28fbaf8fdb1f0c04e0b4034f9 /test | |
parent | 14196632191339b69d9db3a242a1b8be3f960669 (diff) | |
download | serd-1c59b863d8c2c2d7b5531866586baf232c0047a2.tar.gz serd-1c59b863d8c2c2d7b5531866586baf232c0047a2.tar.bz2 serd-1c59b863d8c2c2d7b5531866586baf232c0047a2.zip |
Remove serd_uri_to_path()
Diffstat (limited to 'test')
-rw-r--r-- | test/test_uri.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/test/test_uri.c b/test/test_uri.c index ac24a2be..daa64240 100644 --- a/test/test_uri.c +++ b/test/test_uri.c @@ -59,50 +59,6 @@ test_file_uri(const char* const 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) -{ - assert(!strcmp( - (const char*)serd_uri_to_path((const uint8_t*)"file:///home/user/foo.ttl"), - "/home/user/foo.ttl")); - - assert(!strcmp((const char*)serd_uri_to_path( - (const uint8_t*)"file://localhost/home/user/foo.ttl"), - "/home/user/foo.ttl")); - - assert(!serd_uri_to_path((const uint8_t*)"file:illegal/file/uri")); - - assert(!strcmp( - (const char*)serd_uri_to_path((const uint8_t*)"file:///c:/awful/system"), - "c:/awful/system")); - - assert(!strcmp( - (const char*)serd_uri_to_path((const uint8_t*)"file:///c:awful/system"), - "/c:awful/system")); - - assert(!strcmp((const char*)serd_uri_to_path((const uint8_t*)"file:///0/1"), - "/0/1")); - - assert( - !strcmp((const char*)serd_uri_to_path((const uint8_t*)"C:\\Windows\\Sucks"), - "C:\\Windows\\Sucks")); - - assert( - !strcmp((const char*)serd_uri_to_path((const uint8_t*)"C|/Windows/Sucks"), - "C|/Windows/Sucks")); - - assert(!serd_uri_to_path((const uint8_t*)"http://example.org/path")); -} - -#if defined(__GNUC__) -# pragma GCC diagnostic pop -#endif - static void test_uri_parsing(void) { @@ -346,7 +302,6 @@ test_relative_uri(void) int main(void) { - test_uri_to_path(); test_uri_string_has_scheme(); test_uri_parsing(); test_uri_from_string(); |