Commit 375c88b1 authored by Max Kellermann's avatar Max Kellermann

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

parent a65f6374
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment