From 1c59b863d8c2c2d7b5531866586baf232c0047a2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 4 Feb 2018 20:49:28 +0100 Subject: Remove serd_uri_to_path() --- test/test_uri.c | 45 --------------------------------------------- 1 file changed, 45 deletions(-) (limited to 'test') 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(); -- cgit v1.2.1