diff options
author | David Robillard <d@drobilla.net> | 2021-02-20 13:17:03 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 16:27:02 -0500 |
commit | 53c28210b9e81ba33fddce89b2d61fb7c99445dc (patch) | |
tree | 524885916085088ee8d2744cbe3ff4ed217f149f /test/test_uri.c | |
parent | 19b9f627ba195cab7c7ebea9daca9ead6e4f5d9a (diff) | |
download | serd-53c28210b9e81ba33fddce89b2d61fb7c99445dc.tar.gz serd-53c28210b9e81ba33fddce89b2d61fb7c99445dc.tar.bz2 serd-53c28210b9e81ba33fddce89b2d61fb7c99445dc.zip |
Rename SerdURI to SerdURIView
Diffstat (limited to 'test/test_uri.c')
-rw-r--r-- | test/test_uri.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/test_uri.c b/test/test_uri.c index 2a42e5f6..5f1a7f16 100644 --- a/test/test_uri.c +++ b/test/test_uri.c @@ -114,8 +114,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); @@ -147,17 +147,17 @@ check_relative_uri(const char* const uri_string, assert(base_string); assert(expected_string); - SerdURI uri = SERD_URI_NULL; - SerdURI base = SERD_URI_NULL; - SerdURI result = SERD_URI_NULL; + SerdURIView uri = SERD_URI_NULL; + SerdURIView base = SERD_URI_NULL; + SerdURIView result = SERD_URI_NULL; SerdNode uri_node = serd_node_new_uri_from_string(uri_string, NULL, &uri); SerdNode base_node = serd_node_new_uri_from_string(base_string, NULL, &base); SerdNode result_node = SERD_NODE_NULL; if (root_string) { - SerdURI root = SERD_URI_NULL; - SerdNode root_node = + SerdURIView root = SERD_URI_NULL; + SerdNode root_node = serd_node_new_uri_from_string(root_string, NULL, &root); result_node = serd_node_new_relative_uri(&uri, &base, &root, &result); @@ -168,7 +168,7 @@ check_relative_uri(const char* const uri_string, assert(!strcmp((const char*)result_node.buf, expected_string)); - SerdURI expected = SERD_URI_NULL; + SerdURIView expected = SERD_URI_NULL; assert(!serd_uri_parse(expected_string, &expected)); assert(chunk_equals(&result.scheme, &expected.scheme)); assert(chunk_equals(&result.authority, &expected.authority)); |