summaryrefslogtreecommitdiffstats
path: root/test/test_get_symbol.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-26 19:22:03 +0100
committerDavid Robillard <d@drobilla.net>2020-12-31 14:15:00 +0100
commit31cc05d5ef6e840ebe2b4c265f374f913f4758cc (patch)
tree87302811f8df1f16e0bd4785ff405906a993b7d0 /test/test_get_symbol.c
parent7a51f0b8e95d29b5e053db97bf72094e847ee7ef (diff)
downloadlilv-31cc05d5ef6e840ebe2b4c265f374f913f4758cc.tar.gz
lilv-31cc05d5ef6e840ebe2b4c265f374f913f4758cc.tar.bz2
lilv-31cc05d5ef6e840ebe2b4c265f374f913f4758cc.zip
Format all code with clang-format
Diffstat (limited to 'test/test_get_symbol.c')
-rw-r--r--test/test_get_symbol.c70
1 files changed, 35 insertions, 35 deletions
diff --git a/test/test_get_symbol.c b/test/test_get_symbol.c
index 0427447..e8cb452 100644
--- a/test/test_get_symbol.c
+++ b/test/test_get_symbol.c
@@ -37,45 +37,45 @@ static const char* const plugin_ttl = "\
int
main(void)
{
- LilvTestEnv* const env = lilv_test_env_new();
- LilvWorld* const world = env->world;
+ LilvTestEnv* const env = lilv_test_env_new();
+ LilvWorld* const world = env->world;
- if (start_bundle(env, manifest_ttl, plugin_ttl)) {
- return 1;
- }
+ if (start_bundle(env, manifest_ttl, plugin_ttl)) {
+ return 1;
+ }
- LilvNode* plug_sym = lilv_world_get_symbol(world, env->plugin1_uri);
- LilvNode* path = lilv_new_uri(world, "http://example.org/foo");
- LilvNode* path_sym = lilv_world_get_symbol(world, path);
- LilvNode* query = lilv_new_uri(world, "http://example.org/foo?bar=baz");
- LilvNode* query_sym = lilv_world_get_symbol(world, query);
- LilvNode* frag = lilv_new_uri(world, "http://example.org/foo#bar");
- LilvNode* frag_sym = lilv_world_get_symbol(world, frag);
- LilvNode* queryfrag =
- lilv_new_uri(world, "http://example.org/foo?bar=baz#quux");
- LilvNode* queryfrag_sym = lilv_world_get_symbol(world, queryfrag);
- LilvNode* nonuri = lilv_new_int(world, 42);
+ LilvNode* plug_sym = lilv_world_get_symbol(world, env->plugin1_uri);
+ LilvNode* path = lilv_new_uri(world, "http://example.org/foo");
+ LilvNode* path_sym = lilv_world_get_symbol(world, path);
+ LilvNode* query = lilv_new_uri(world, "http://example.org/foo?bar=baz");
+ LilvNode* query_sym = lilv_world_get_symbol(world, query);
+ LilvNode* frag = lilv_new_uri(world, "http://example.org/foo#bar");
+ LilvNode* frag_sym = lilv_world_get_symbol(world, frag);
+ LilvNode* queryfrag =
+ lilv_new_uri(world, "http://example.org/foo?bar=baz#quux");
+ LilvNode* queryfrag_sym = lilv_world_get_symbol(world, queryfrag);
+ LilvNode* nonuri = lilv_new_int(world, 42);
- assert(lilv_world_get_symbol(world, nonuri) == NULL);
- assert(!strcmp(lilv_node_as_string(plug_sym), "plugsym"));
- assert(!strcmp(lilv_node_as_string(path_sym), "foo"));
- assert(!strcmp(lilv_node_as_string(query_sym), "bar_baz"));
- assert(!strcmp(lilv_node_as_string(frag_sym), "bar"));
- assert(!strcmp(lilv_node_as_string(queryfrag_sym), "quux"));
+ assert(lilv_world_get_symbol(world, nonuri) == NULL);
+ assert(!strcmp(lilv_node_as_string(plug_sym), "plugsym"));
+ assert(!strcmp(lilv_node_as_string(path_sym), "foo"));
+ assert(!strcmp(lilv_node_as_string(query_sym), "bar_baz"));
+ assert(!strcmp(lilv_node_as_string(frag_sym), "bar"));
+ assert(!strcmp(lilv_node_as_string(queryfrag_sym), "quux"));
- lilv_node_free(nonuri);
- lilv_node_free(queryfrag_sym);
- lilv_node_free(queryfrag);
- lilv_node_free(frag_sym);
- lilv_node_free(frag);
- lilv_node_free(query_sym);
- lilv_node_free(query);
- lilv_node_free(path_sym);
- lilv_node_free(path);
- lilv_node_free(plug_sym);
+ lilv_node_free(nonuri);
+ lilv_node_free(queryfrag_sym);
+ lilv_node_free(queryfrag);
+ lilv_node_free(frag_sym);
+ lilv_node_free(frag);
+ lilv_node_free(query_sym);
+ lilv_node_free(query);
+ lilv_node_free(path_sym);
+ lilv_node_free(path);
+ lilv_node_free(plug_sym);
- delete_bundle(env);
- lilv_test_env_free(env);
+ delete_bundle(env);
+ lilv_test_env_free(env);
- return 0;
+ return 0;
}