aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-30 17:14:40 +0100
committerMax Kellermann <max@duempel.org>2013-10-30 17:14:40 +0100
commit375c88b110d45b11a0635c896e6016ddad39bcee (patch)
tree01338eb1060d0b8d84e6e3bbd65b063c80a06a82 /test
parenta65f63747b4602cf227f7c0699b01bba5f7cd8df (diff)
downloadmpd-375c88b110d45b11a0635c896e6016ddad39bcee.tar.gz
mpd-375c88b110d45b11a0635c896e6016ddad39bcee.tar.xz
mpd-375c88b110d45b11a0635c896e6016ddad39bcee.zip
test/test_mixramp: add test with "invalid" return value
Diffstat (limited to 'test')
-rw-r--r--test/test_mixramp.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_mixramp.cxx b/test/test_mixramp.cxx
index 83d266d48..7ed250717 100644
--- a/test/test_mixramp.cxx
+++ b/test/test_mixramp.cxx
@@ -45,6 +45,10 @@ public:
free(foo);
foo = strdup(input);
+ CPPUNIT_ASSERT(std::isnan(mixramp_interpolate(foo, 6.1)));
+ free(foo);
+
+ foo = strdup(input);
CPPUNIT_ASSERT_DOUBLES_EQUAL(float(0.05),
mixramp_interpolate(foo, 2),
0.05);