Browse Source

Add test for attempting to convert a non-file URI to a path

zrythm_meson
David Robillard 2 years ago
parent
commit
a89a3dfac5
  1. 3
      test/test_uri.c

3
test/test_uri.c

@ -82,6 +82,9 @@ test_uri_to_path(void) @@ -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__)

Loading…
Cancel
Save