diff options
author | Colin Fletcher <colin.m.fletcher@googlemail.com> | 2015-02-13 12:25:26 +0000 |
---|---|---|
committer | Colin Fletcher <colin.m.fletcher@googlemail.com> | 2015-02-13 12:25:51 +0000 |
commit | cb3961d9534d3bd86cc2c1c2be72b8eb33717e77 (patch) | |
tree | e0f79edfa92144d09b0d59f92fd74ee7bd10be3c /libs/evoral/test/CurveTest.hpp | |
parent | 5ec93d18e16f83ff4548ea27379c813c8f42e413 (diff) |
Add a test for the constrained cubic interpolation of Evoral::Curve
Add a test, based on the worked example in www.korf.co.uk/spline.pdf, for
the constrained cubic spline interpolation.
The delta values for the float comparisons are rather arbitrary, I'm sorry
to say: they're basically chosen so that everything passes.
Diffstat (limited to 'libs/evoral/test/CurveTest.hpp')
-rw-r--r-- | libs/evoral/test/CurveTest.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/evoral/test/CurveTest.hpp b/libs/evoral/test/CurveTest.hpp index a1c37d4246..9867edc8c6 100644 --- a/libs/evoral/test/CurveTest.hpp +++ b/libs/evoral/test/CurveTest.hpp @@ -9,6 +9,7 @@ class CurveTest : public CppUnit::TestFixture CPPUNIT_TEST (twoPointLinear); CPPUNIT_TEST (threePointLinear); CPPUNIT_TEST (threePointDiscete); + CPPUNIT_TEST (constrainedCubic); CPPUNIT_TEST (ctrlListEval); CPPUNIT_TEST_SUITE_END (); @@ -16,6 +17,7 @@ public: void twoPointLinear (); void threePointLinear (); void threePointDiscete (); + void constrainedCubic (); void ctrlListEval (); private: |