diff options
author | David Robillard <d@drobilla.net> | 2020-12-17 10:17:20 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-17 10:17:20 +0100 |
commit | a89a3dfac582b7f41f8442c9f1a66725beb26218 (patch) | |
tree | 5b8e560fb272fed3a39b746247cd14cfe329e9bf /test/test_uri.c | |
parent | 0ca210bc004be707b797cb039491af95d457c9ce (diff) | |
download | serd-a89a3dfac582b7f41f8442c9f1a66725beb26218.tar.gz serd-a89a3dfac582b7f41f8442c9f1a66725beb26218.tar.bz2 serd-a89a3dfac582b7f41f8442c9f1a66725beb26218.zip |
Add test for attempting to convert a non-file URI to a path
Diffstat (limited to 'test/test_uri.c')
-rw-r--r-- | test/test_uri.c | 3 |
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__) |