summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-07-10 13:51:28 -0400
committerDavid Robillard <d@drobilla.net>2016-07-10 13:51:28 -0400
commitd985a2ee02311a81feb417677d24903c4b97398f (patch)
tree44993e4c4df6f155519b43e4a41cd161b04a0869 /test
parent864e12f4c87b72e860c08f57808e25a4ec1548a3 (diff)
downloadlilv-d985a2ee02311a81feb417677d24903c4b97398f.tar.gz
lilv-d985a2ee02311a81feb417677d24903c4b97398f.tar.bz2
lilv-d985a2ee02311a81feb417677d24903c4b97398f.zip
Test lilv_node_as_float on non-numeric nodes
Diffstat (limited to 'test')
-rw-r--r--test/lilv_test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lilv_test.c b/test/lilv_test.c
index 64021f8..cc3a012 100644
--- a/test/lilv_test.c
+++ b/test/lilv_test.c
@@ -252,6 +252,7 @@ test_value(void)
TEST_ASSERT(!strcmp(lilv_node_as_string(sval), "Foo"));
TEST_ASSERT(lilv_node_as_int(ival) == 42);
TEST_ASSERT(fabs(lilv_node_as_float(fval) - 1.6180) < FLT_EPSILON);
+ TEST_ASSERT(isnan(lilv_node_as_float(sval)));
LilvNode* loc_abs = lilv_new_file_uri(world, NULL, "/foo/bar");
LilvNode* loc_rel = lilv_new_file_uri(world, NULL, "foo");