diff options
Diffstat (limited to 'test/test_world.c')
-rw-r--r-- | test/test_world.c | 47 |
1 files changed, 17 insertions, 30 deletions
diff --git a/test/test_world.c b/test/test_world.c index b8572d2..fda8595 100644 --- a/test/test_world.c +++ b/test/test_world.c @@ -1,18 +1,5 @@ -/* - Copyright 2007-2020 David Robillard <http://drobilla.net> - - Permission to use, copy, modify, and/or distribute this software for any - purpose with or without fee is hereby granted, provided that the above - copyright notice and this permission notice appear in all copies. - - THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -*/ +// Copyright 2007-2020 David Robillard <d@drobilla.net> +// SPDX-License-Identifier: ISC #undef NDEBUG @@ -26,26 +13,26 @@ 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; - LilvNode* num = lilv_new_int(env->world, 4); - LilvNode* uri = lilv_new_uri(env->world, "http://example.org/object"); + LilvNode* num = lilv_new_int(env->world, 4); + LilvNode* uri = lilv_new_uri(env->world, "http://example.org/object"); - LilvNodes* matches = lilv_world_find_nodes(world, num, NULL, NULL); - assert(!matches); + LilvNodes* matches = lilv_world_find_nodes(world, num, NULL, NULL); + assert(!matches); - matches = lilv_world_find_nodes(world, NULL, num, NULL); - assert(!matches); + matches = lilv_world_find_nodes(world, NULL, num, NULL); + assert(!matches); - matches = lilv_world_find_nodes(world, NULL, uri, NULL); - assert(!matches); + matches = lilv_world_find_nodes(world, NULL, uri, NULL); + assert(!matches); - lilv_node_free(uri); - lilv_node_free(num); + lilv_node_free(uri); + lilv_node_free(num); - lilv_world_unload_bundle(world, NULL); - lilv_test_env_free(env); + lilv_world_unload_bundle(world, NULL); + lilv_test_env_free(env); - return 0; + return 0; } |