13
0

temporal: add skeleton for Timeline (timepos_t/timecnt_t) tests

This commit is contained in:
Paul Davis 2022-02-12 20:47:32 -07:00
parent baaf332a94
commit c5d7883538
3 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,40 @@
#include <stdlib.h>
#include "temporal/bbt_time.h"
#include "TimelineTest.h"
CPPUNIT_TEST_SUITE_REGISTRATION(TimelineTest);
using namespace Temporal;
void
TimelineTest::createTest()
{
}
void
TimelineTest::addTest()
{
}
void
TimelineTest::subtractTest()
{
}
void
TimelineTest::multiplyTest()
{
}
void
TimelineTest::roundTest()
{
}
void
TimelineTest::convertTest()
{
}

View File

@ -0,0 +1,22 @@
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
class TimelineTest : public CppUnit::TestFixture
{
CPPUNIT_TEST_SUITE(TimelineTest);
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();
};

View File

@ -87,6 +87,7 @@ def build(bld):
test/BeatTest.cc
test/BBTTest.cc
test/TempoMapTest.cc
test/TimelineTest.cc
test/testrunner.cc
'''
obj.includes = ['.']