test/test_mixramp: improved test for mixramp_interpolate(0)
This commit is contained in:
parent
375c88b110
commit
c0c0526fc8
@ -22,7 +22,9 @@ public:
|
||||
const char *input = "1.0 0.00;3.0 0.10;6.0 2.50;";
|
||||
|
||||
char *foo = strdup(input);
|
||||
CPPUNIT_ASSERT(!std::isnan(mixramp_interpolate(foo, 0)));
|
||||
CPPUNIT_ASSERT_DOUBLES_EQUAL(double(0),
|
||||
mixramp_interpolate(foo, 0),
|
||||
0.05);
|
||||
free(foo);
|
||||
|
||||
foo = strdup(input);
|
||||
@ -40,10 +42,6 @@ public:
|
||||
mixramp_interpolate(foo, 6));
|
||||
free(foo);
|
||||
|
||||
foo = strdup(input);
|
||||
CPPUNIT_ASSERT(!std::isnan(mixramp_interpolate(foo, 3)));
|
||||
free(foo);
|
||||
|
||||
foo = strdup(input);
|
||||
CPPUNIT_ASSERT(std::isnan(mixramp_interpolate(foo, 6.1)));
|
||||
free(foo);
|
||||
|
Loading…
Reference in New Issue
Block a user