test/test_mixramp: add test with "invalid" return value

This commit is contained in:
Max Kellermann 2013-10-30 17:14:40 +01:00
parent a65f63747b
commit 375c88b110

View File

@ -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),