diff options
author | David Robillard <d@drobilla.net> | 2012-02-27 23:30:54 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-02-27 23:30:54 +0000 |
commit | d175e2de6d3b51dfa1af5ea95bdad6e8c97df795 (patch) | |
tree | c074ce18bfd52b18d374fb5c59a1369a65576f2e /test/lilv_test.c | |
parent | 72e3c06d3a6b2558e5e156f917e1c28441819417 (diff) | |
download | lilv-d175e2de6d3b51dfa1af5ea95bdad6e8c97df795.tar.gz lilv-d175e2de6d3b51dfa1af5ea95bdad6e8c97df795.tar.bz2 lilv-d175e2de6d3b51dfa1af5ea95bdad6e8c97df795.zip |
Implement lv2:relation.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4002 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'test/lilv_test.c')
-rw-r--r-- | test/lilv_test.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/lilv_test.c b/test/lilv_test.c index b20b9df..b73d9e6 100644 --- a/test/lilv_test.c +++ b/test/lilv_test.c @@ -544,7 +544,8 @@ test_plugin(void) "] , [ " " a lv2:ControlPort ; a lv2:OutputPort ; " " lv2:index 2 ; lv2:symbol \"latency\" ; lv2:name \"Latency\" ; " - " lv2:portProperty lv2:reportsLatency " + " lv2:portProperty lv2:reportsLatency ; " + " lv2:relation lv2:latency " "] . \n" ":thing doap:name \"Something else\" .\n")) return 0; @@ -612,6 +613,14 @@ test_plugin(void) TEST_ASSERT(lilv_plugin_has_latency(plug)); TEST_ASSERT(lilv_plugin_get_latency_port_index(plug) == 2); + LilvNode* lv2_latency = lilv_new_uri(world, + "http://lv2plug.in/ns/lv2core#latency"); + LilvPort* latency_port = lilv_plugin_get_port_by_relation( + plug, lv2_latency); + + TEST_ASSERT(latency_port); + TEST_ASSERT(lilv_port_get_index(plug, latency_port) == 2); + LilvNode* rt_feature = lilv_new_uri(world, "http://lv2plug.in/ns/lv2core#hardRTCapable"); LilvNode* event_feature = lilv_new_uri(world, |