aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/serd_test.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c
index cf039e1c..b8f9051e 100644
--- a/tests/serd_test.c
+++ b/tests/serd_test.c
@@ -246,42 +246,6 @@ main(void)
}
msg = serd_strerror((SerdStatus)-1);
- // Test serd_uri_to_path
-
- const char* uri = "file:///home/user/foo.ttl";
- if (strcmp(serd_uri_to_path(uri), "/home/user/foo.ttl")) {
- FAILF("Bad path %s for %s\n", serd_uri_to_path(uri), uri);
- }
- uri = "file://localhost/home/user/foo.ttl";
- if (strcmp(serd_uri_to_path(uri), "/home/user/foo.ttl")) {
- FAILF("Bad path %s for %s\n", serd_uri_to_path(uri), uri);
- }
- uri = "file:illegal/file/uri";
- if (serd_uri_to_path(uri)) {
- FAILF("Converted invalid URI `%s' to path `%s'\n",
- uri, serd_uri_to_path(uri));
- }
- uri = "file:///c:/awful/system";
- if (strcmp((const char*)serd_uri_to_path(uri), "c:/awful/system")) {
- FAILF("Bad path %s for %s\n", serd_uri_to_path(uri), uri);
- }
- uri = "file:///c:awful/system";
- if (strcmp((const char*)serd_uri_to_path(uri), "/c:awful/system")) {
- FAILF("Bad path %s for %s\n", serd_uri_to_path(uri), uri);
- }
- uri = "file:///0/1";
- if (strcmp((const char*)serd_uri_to_path(uri), "/0/1")) {
- FAILF("Bad path %s for %s\n", serd_uri_to_path(uri), uri);
- }
- uri = "C:\\Windows\\Sucks";
- if (strcmp((const char*)serd_uri_to_path(uri), "C:\\Windows\\Sucks")) {
- FAILF("Bad path %s for %s\n", serd_uri_to_path(uri), uri);
- }
- uri = "C|/Windows/Sucks";
- if (strcmp((const char*)serd_uri_to_path(uri), "C|/Windows/Sucks")) {
- FAILF("Bad path %s for %s\n", serd_uri_to_path(uri), uri);
- }
-
// Test file URI escaping and parsing
if (check_file_uri(NULL, "C:/My 100%", true,