From d457446041b634e650d95539ad44f553c1eee6e1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 23 Nov 2012 06:14:56 +0000 Subject: Add lilv_world_ask() for simply checking if a statement exists. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4862 a436a847-0d15-0410-975c-d299462d15a1 --- test/lilv_test.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') diff --git a/test/lilv_test.c b/test/lilv_test.c index 0fade61..48fafa5 100644 --- a/test/lilv_test.c +++ b/test/lilv_test.c @@ -562,6 +562,14 @@ test_plugin(void) TEST_ASSERT(!strcmp(lilv_node_as_string(klass_uri), "http://lv2plug.in/ns/lv2core#CompressorPlugin")); + LilvNode* rdf_type = lilv_new_uri( + world, "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"); + TEST_ASSERT(lilv_world_ask(world, + lilv_plugin_get_uri(plug), + rdf_type, + klass_uri)); + lilv_node_free(rdf_type); + const LilvNode* plug_bundle_uri = lilv_plugin_get_bundle_uri(plug); TEST_ASSERT(!strcmp(lilv_node_as_string(plug_bundle_uri), bundle_dir_uri)); -- cgit v1.2.1