2015-01-19 16:14:58 -05:00
|
|
|
#include <cppunit/TestFixture.h>
|
|
|
|
#include <cppunit/extensions/HelperMacros.h>
|
2015-01-19 17:53:52 -05:00
|
|
|
#include <boost/shared_ptr.hpp>
|
|
|
|
#include "evoral/ControlList.hpp"
|
2015-01-19 16:14:58 -05:00
|
|
|
|
|
|
|
class CurveTest : public CppUnit::TestFixture
|
|
|
|
{
|
|
|
|
CPPUNIT_TEST_SUITE (CurveTest);
|
2016-12-04 15:17:08 -05:00
|
|
|
CPPUNIT_TEST (trivial);
|
|
|
|
CPPUNIT_TEST (rtGet);
|
2015-01-19 17:53:52 -05:00
|
|
|
CPPUNIT_TEST (twoPointLinear);
|
2015-01-19 18:46:58 -05:00
|
|
|
CPPUNIT_TEST (threePointLinear);
|
|
|
|
CPPUNIT_TEST (threePointDiscete);
|
2015-02-13 07:25:26 -05:00
|
|
|
CPPUNIT_TEST (constrainedCubic);
|
2015-01-19 18:46:58 -05:00
|
|
|
CPPUNIT_TEST (ctrlListEval);
|
2015-01-19 16:14:58 -05:00
|
|
|
CPPUNIT_TEST_SUITE_END ();
|
|
|
|
|
|
|
|
public:
|
2016-12-04 15:17:08 -05:00
|
|
|
void trivial ();
|
|
|
|
void rtGet ();
|
2015-01-19 17:53:52 -05:00
|
|
|
void twoPointLinear ();
|
2015-01-19 18:46:58 -05:00
|
|
|
void threePointLinear ();
|
|
|
|
void threePointDiscete ();
|
2015-02-13 07:25:26 -05:00
|
|
|
void constrainedCubic ();
|
2015-01-19 18:46:58 -05:00
|
|
|
void ctrlListEval ();
|
2015-01-19 16:14:58 -05:00
|
|
|
|
2015-01-19 17:53:52 -05:00
|
|
|
private:
|
|
|
|
boost::shared_ptr<Evoral::ControlList> TestCtrlList() {
|
|
|
|
Evoral::Parameter param (Evoral::Parameter(0));
|
|
|
|
const Evoral::ParameterDescriptor desc;
|
|
|
|
return boost::shared_ptr<Evoral::ControlList> (new Evoral::ControlList(param, desc));
|
|
|
|
}
|
|
|
|
};
|