aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_mixramp.cxx15
1 files changed, 9 insertions, 6 deletions
diff --git a/test/test_mixramp.cxx b/test/test_mixramp.cxx
index 0dc67db77..954aade87 100644
--- a/test/test_mixramp.cxx
+++ b/test/test_mixramp.cxx
@@ -28,18 +28,21 @@ public:
free(foo);
foo = strdup(input);
- CPPUNIT_ASSERT_EQUAL(float(0),
- mixramp_interpolate(foo, 1));
+ CPPUNIT_ASSERT_DOUBLES_EQUAL(float(0),
+ mixramp_interpolate(foo, 1),
+ 0.005);
free(foo);
foo = strdup(input);
- CPPUNIT_ASSERT_EQUAL(float(0.1),
- mixramp_interpolate(foo, 3));
+ CPPUNIT_ASSERT_DOUBLES_EQUAL(float(0.1),
+ mixramp_interpolate(foo, 3),
+ 0.005);
free(foo);
foo = strdup(input);
- CPPUNIT_ASSERT_EQUAL(float(2.5),
- mixramp_interpolate(foo, 6));
+ CPPUNIT_ASSERT_DOUBLES_EQUAL(float(2.5),
+ mixramp_interpolate(foo, 6),
+ 0.01);
free(foo);
foo = strdup(input);