aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_uri.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-02-20 13:17:03 -0500
committerDavid Robillard <d@drobilla.net>2021-03-07 15:32:23 -0500
commit5ea69340e389163cfea54c16a466672b9b7284b8 (patch)
treee8240a625b3b23990658266d1113b0f86a41b38e /test/test_uri.c
parentb4dee10576e9916c0c8d80033bc429dc38a70c1c (diff)
downloadserd-5ea69340e389163cfea54c16a466672b9b7284b8.tar.gz
serd-5ea69340e389163cfea54c16a466672b9b7284b8.tar.bz2
serd-5ea69340e389163cfea54c16a466672b9b7284b8.zip
Rename SerdURI to SerdURIView
Diffstat (limited to 'test/test_uri.c')
-rw-r--r--test/test_uri.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/test_uri.c b/test/test_uri.c
index 8c3ec5a4..e6933759 100644
--- a/test/test_uri.c
+++ b/test/test_uri.c
@@ -69,8 +69,8 @@ test_uri_from_string(void)
SerdNode nonsense = serd_node_new_uri_from_string(NULL, NULL, NULL);
assert(nonsense.type == SERD_NOTHING);
- SerdURI base_uri;
- SerdNode base =
+ SerdURIView base_uri;
+ SerdNode base =
serd_node_new_uri_from_string("http://example.org/", NULL, &base_uri);
SerdNode nil = serd_node_new_uri_from_string(NULL, &base_uri, NULL);
SerdNode nil2 = serd_node_new_uri_from_string("", &base_uri, NULL);
@@ -87,16 +87,16 @@ test_uri_from_string(void)
static void
test_relative_uri(void)
{
- SerdURI base_uri;
- SerdNode base =
+ SerdURIView base_uri;
+ SerdNode base =
serd_node_new_uri_from_string("http://example.org/", NULL, &base_uri);
SerdNode abs = serd_node_from_string(SERD_URI, "http://example.org/foo/bar");
- SerdURI abs_uri;
+ SerdURIView abs_uri;
serd_uri_parse(abs.buf, &abs_uri);
- SerdURI rel_uri;
- SerdNode rel =
+ SerdURIView rel_uri;
+ SerdNode rel =
serd_node_new_relative_uri(&abs_uri, &base_uri, NULL, &rel_uri);
assert(!strcmp(rel.buf, "/foo/bar"));
@@ -107,8 +107,8 @@ test_relative_uri(void)
serd_node_new_relative_uri(&base_uri, &abs_uri, &abs_uri, NULL);
assert(!strcmp(noup.buf, "http://example.org/"));
- SerdNode x = serd_node_from_string(SERD_URI, "http://example.org/foo/x");
- SerdURI x_uri;
+ SerdNode x = serd_node_from_string(SERD_URI, "http://example.org/foo/x");
+ SerdURIView x_uri;
serd_uri_parse(x.buf, &x_uri);
SerdNode x_rel = serd_node_new_relative_uri(&x_uri, &abs_uri, &abs_uri, NULL);