13
0
livetrax/libs/evoral/test/CurveTest.hpp

30 lines
811 B
C++
Raw Normal View History

2015-01-19 16:14:58 -05:00
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
#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);
CPPUNIT_TEST (twoPointLinear);
2015-01-19 18:46:58 -05:00
CPPUNIT_TEST (threePointLinear);
CPPUNIT_TEST (threePointDiscete);
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:
void twoPointLinear ();
2015-01-19 18:46:58 -05:00
void threePointLinear ();
void threePointDiscete ();
void constrainedCubic ();
2015-01-19 18:46:58 -05:00
void ctrlListEval ();
2015-01-19 16:14:58 -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));
}
};