aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-17 10:17:20 +0100
committerDavid Robillard <d@drobilla.net>2020-12-17 10:17:20 +0100
commita89a3dfac582b7f41f8442c9f1a66725beb26218 (patch)
tree5b8e560fb272fed3a39b746247cd14cfe329e9bf
parent0ca210bc004be707b797cb039491af95d457c9ce (diff)
downloadserd-a89a3dfac582b7f41f8442c9f1a66725beb26218.tar.gz
serd-a89a3dfac582b7f41f8442c9f1a66725beb26218.tar.bz2
serd-a89a3dfac582b7f41f8442c9f1a66725beb26218.zip
Add test for attempting to convert a non-file URI to a path
-rw-r--r--test/test_uri.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_uri.c b/test/test_uri.c
index 0328a413..9538ffb0 100644
--- a/test/test_uri.c
+++ b/test/test_uri.c
@@ -82,6 +82,9 @@ test_uri_to_path(void)
uri = (const uint8_t*)"C|/Windows/Sucks";
assert(!strcmp((const char*)serd_uri_to_path(uri), "C|/Windows/Sucks"));
+
+ uri = (const uint8_t*)"http://example.org/path";
+ assert(!serd_uri_to_path(uri));
}
#if defined(__GNUC__)