From 375c88b110d45b11a0635c896e6016ddad39bcee Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Oct 2013 17:14:40 +0100 Subject: test/test_mixramp: add test with "invalid" return value --- test/test_mixramp.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') 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 @@ -44,6 +44,10 @@ public: CPPUNIT_ASSERT(!std::isnan(mixramp_interpolate(foo, 3))); 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), -- cgit v1.2.3