aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/serd_test.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c
index 863d2e95..aa47ade4 100644
--- a/tests/serd_test.c
+++ b/tests/serd_test.c
@@ -244,6 +244,14 @@ main()
if (strcmp((const char*)serd_uri_to_path(uri), "/0/1")) {
return failure("Bad path %s for %s\n", serd_uri_to_path(uri), uri);
}
+ uri = (const uint8_t*)"C:\\Windows\\Sucks";
+ if (strcmp((const char*)serd_uri_to_path(uri), "C:\\Windows\\Sucks")) {
+ return failure("Bad path %s for %s\n", serd_uri_to_path(uri), uri);
+ }
+ uri = (const uint8_t*)"C|/Windows/Sucks";
+ if (strcmp((const char*)serd_uri_to_path(uri), "C|/Windows/Sucks")) {
+ return failure("Bad path %s for %s\n", serd_uri_to_path(uri), uri);
+ }
// Test serd_node_equals