summaryrefslogtreecommitdiffstats
path: root/src/sord_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-16 11:55:38 +0100
committerDavid Robillard <d@drobilla.net>2017-12-16 14:00:28 +0100
commit0aab4478058a006819549e40946dc23dce05bafa (patch)
treefdb4e2c29d1cd32650457db4583edd6ef62d000c /src/sord_test.c
parent46b8e6ed53370d76c294c5e40b040ea78d6c9847 (diff)
downloadsord-0aab4478058a006819549e40946dc23dce05bafa.tar.gz
sord-0aab4478058a006819549e40946dc23dce05bafa.tar.bz2
sord-0aab4478058a006819549e40946dc23dce05bafa.zip
Fix various minor style issues
Diffstat (limited to 'src/sord_test.c')
-rw-r--r--src/sord_test.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sord_test.c b/src/sord_test.c
index ce54c68..ab2b918 100644
--- a/src/sord_test.c
+++ b/src/sord_test.c
@@ -404,14 +404,14 @@ main(int argc, char** argv)
sord_world_set_error_sink(world, expected_error, NULL);
// Attempt to create invalid CURIE
- SerdNode base = serd_node_from_string(SERD_URI, USTR("http://example.org/"));
- SerdEnv* env = serd_env_new(&base);
- SerdNode sbadns = serd_node_from_string(SERD_CURIE, USTR("badns:"));
- SordNode* badns = sord_node_from_serd_node(world, env, &sbadns, NULL, NULL);
- if (badns) {
+ SerdNode base = serd_node_from_string(SERD_URI, USTR("http://example.org/"));
+ SerdEnv* env = serd_env_new(&base);
+ SerdNode sbad = serd_node_from_string(SERD_CURIE, USTR("bad:"));
+ SordNode* bad = sord_node_from_serd_node(world, env, &sbad, NULL, NULL);
+ if (bad) {
return test_fail("Successfully created CURIE with bad namespace\n");
}
- sord_node_free(world, badns);
+ sord_node_free(world, bad);
serd_env_free(env);
// Attempt to create node from garbage