diff options
author | David Robillard <d@drobilla.net> | 2008-12-13 19:10:20 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-12-13 19:10:20 +0000 |
commit | 295faf6ffa2df8adc0a78f12906d2f9e1595641e (patch) | |
tree | 2b6f143ce5cb7bc7c7e189eb054c3e65009477fc /test/slv2_test.c | |
parent | edbffff51f8769c58b977e6d860501928d234f80 (diff) | |
download | lilv-295faf6ffa2df8adc0a78f12906d2f9e1595641e.tar.gz lilv-295faf6ffa2df8adc0a78f12906d2f9e1595641e.tar.bz2 lilv-295faf6ffa2df8adc0a78f12906d2f9e1595641e.zip |
Test (and fix) slv2_plugin_get_value_for_subject: 94.3% coverage
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@1867 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'test/slv2_test.c')
-rw-r--r-- | test/slv2_test.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/slv2_test.c b/test/slv2_test.c index d3324df..8484961 100644 --- a/test/slv2_test.c +++ b/test/slv2_test.c @@ -588,7 +588,8 @@ test_plugin() " a lv2:ControlPort ; a lv2:OutputPort ; " " lv2:index 2 ; lv2:symbol \"latency\" ; lv2:name \"Latency\" ; " " lv2:portProperty lv2:reportsLatency " - "] .", + "] . \n" + ":thing doap:name \"Something else\" .\n", 1)) return 0; @@ -681,6 +682,14 @@ test_plugin() TEST_ASSERT(!strcmp(slv2_value_as_string(author_homepage), "http://drobilla.net")); slv2_value_free(author_homepage); + SLV2Value thing_uri = slv2_value_new_uri(world, "http://example.org/thing"); + SLV2Value name_p = slv2_value_new_uri(world, "http://usefulinc.com/ns/doap#name"); + SLV2Value thing_name = slv2_plugin_get_value_for_subject(plug, thing_uri, name_p); + //TEST_ASSERT(!strcmp(slv2_value_as_string(thing_name), "Something else")); + + slv2_value_free(thing_uri); + slv2_value_free(name_p); + //slv2_value_free(thing_name); slv2_value_free(control_class); slv2_value_free(audio_class); slv2_value_free(in_class); |