summaryrefslogtreecommitdiffstats
path: root/test/test_state.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-03-11 18:23:35 -0500
committerDavid Robillard <d@drobilla.net>2022-03-11 18:23:35 -0500
commitb590c510015db3b3ff8201c557c51c38d26c9982 (patch)
tree44e242446e2ef5fa75d531cbdd7cabfbd4c2c15b /test/test_state.c
parent42c4705bbcdf0a638aca6923325ed9a5660bfc26 (diff)
downloadlilv-b590c510015db3b3ff8201c557c51c38d26c9982.tar.gz
lilv-b590c510015db3b3ff8201c557c51c38d26c9982.tar.bz2
lilv-b590c510015db3b3ff8201c557c51c38d26c9982.zip
fixup! WIP: Port to serd1
Diffstat (limited to 'test/test_state.c')
-rw-r--r--test/test_state.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_state.c b/test/test_state.c
index 2951b61..636d637 100644
--- a/test/test_state.c
+++ b/test/test_state.c
@@ -248,7 +248,7 @@ load_test_plugin(const TestContext* const ctx)
LilvWorld* world = ctx->env->world;
char* abs_bundle = lilv_path_absolute(LILV_TEST_BUNDLE);
SerdNode* bundle =
- serd_new_file_uri(NULL, SERD_STRING(abs_bundle), SERD_EMPTY_STRING());
+ serd_new_file_uri(NULL, serd_string(abs_bundle), serd_empty_string());
LilvNode* bundle_uri = lilv_new_uri(world, serd_node_string(bundle));
LilvNode* plugin_uri = lilv_new_uri(world, TEST_PLUGIN_URI);
@@ -550,9 +550,9 @@ count_statements(const char* path)
size_t n_statements = 0;
SerdWorld* const world = serd_world_new(NULL);
- const SerdStringView path_view = SERD_STRING(path);
+ const SerdStringView path_view = serd_string(path);
SerdNode* const base =
- serd_new_file_uri(NULL, path_view, SERD_EMPTY_STRING());
+ serd_new_file_uri(NULL, path_view, serd_empty_string());
SerdEnv* const env = serd_env_new(world, serd_node_string_view(base));
SerdSink* const sink = serd_sink_new(world, &n_statements, count_func, NULL);
@@ -919,7 +919,7 @@ test_world_round_trip(void)
// Load state bundle into world
SerdNode* bundle_uri =
- serd_new_file_uri(NULL, SERD_STRING(bundle_path), SERD_EMPTY_STRING());
+ serd_new_file_uri(NULL, serd_string(bundle_path), serd_empty_string());
LilvNode* const bundle_node =
lilv_new_uri(world, serd_node_string(bundle_uri));