remove some unnecessary and hard-to-compile-on-OSX debug stuff
[ardour.git] / libs / ardour / test / bbt_test.cpp
1 #include <cassert>
2 #include "ardour/tempo.h"
3 #include "bbt_test.h"
4
5 CPPUNIT_TEST_SUITE_REGISTRATION(BBTTest);
6
7 using namespace std;
8 using namespace ARDOUR;
9
10 void
11 BBTTest::addTest ()
12 {
13         TempoMap map(48000);
14         Tempo    tempo(120);
15         Meter    meter(4.0, 4.0);
16
17         map.add_meter (meter, BBT_Time(1, 1, 0));
18
19         // Test basic operations with a flat tempo map
20         BBT_Time time = map.bbt_add(BBT_Time(1, 1, 0), BBT_Time(1, 2, 3));
21         //cout << "result: BBT_Time(" << time.bars << ", " << time.beats << ", " 
22         //     << time.ticks << ")" << endl;
23         CPPUNIT_ASSERT(time == BBT_Time(2, 3, 3));
24
25
26         time = map.bbt_add(BBT_Time(1, 2, 3), BBT_Time(2, 2, 3));
27         //cerr << "result: BBT_Time(" << time.bars << ", " << time.beats << ", " 
28         //     << time.ticks << ")" << endl;
29         CPPUNIT_ASSERT(time == BBT_Time(3, 4, 6));
30 }
31
32 void
33 BBTTest::subtractTest ()
34 {
35 }