Paul Davis
04bd9187e4
This just uses the old Evoral BeatTest. Some of the tests needed amending because temporal uses rint() to convert between float and int, not just a cast.
23 lines
482 B
C++
23 lines
482 B
C++
#include <cppunit/TestFixture.h>
|
|
#include <cppunit/extensions/HelperMacros.h>
|
|
|
|
class BeatsTest : public CppUnit::TestFixture
|
|
{
|
|
CPPUNIT_TEST_SUITE(BeatsTest);
|
|
CPPUNIT_TEST(createTest);
|
|
CPPUNIT_TEST(addTest);
|
|
CPPUNIT_TEST(subtractTest);
|
|
CPPUNIT_TEST(multiplyTest);
|
|
CPPUNIT_TEST(convertTest);
|
|
CPPUNIT_TEST(roundTest);
|
|
CPPUNIT_TEST_SUITE_END();
|
|
|
|
public:
|
|
void createTest();
|
|
void addTest();
|
|
void subtractTest();
|
|
void multiplyTest();
|
|
void convertTest();
|
|
void roundTest();
|
|
};
|