aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_uri.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_uri.c')
-rw-r--r--test/test_uri.c45
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();