Fix libevoal unit-test compilation

This commit is contained in:
Robin Gareus 2019-09-05 14:08:31 +02:00
parent f491d7ec71
commit efec546035
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
6 changed files with 20 additions and 19 deletions

View file

@ -1,18 +1,18 @@
#include "NoteTest.hpp"
#include "temporal/beats.h"
#include "evoral/Note.hpp"
#include "evoral/Beats.hpp"
#include <stdlib.h>
CPPUNIT_TEST_SUITE_REGISTRATION (NoteTest);
using namespace Evoral;
typedef Beats Time;
typedef Temporal::Beats Time;
void
NoteTest::copyTest ()
{
Note<Time> a(0, Beats(1.0), Beats(2.0), 60, 0x40);
Note<Time> a(0, Time(1.0), Time(2.0), 60, 0x40);
Note<Time> b(a);
CPPUNIT_ASSERT (a == b);
@ -25,7 +25,7 @@ NoteTest::copyTest ()
void
NoteTest::idTest ()
{
Note<Time> a(0, Beats(1.0), Beats(2.0), 60, 0x40);
Note<Time> a(0, Time(1.0), Time(2.0), 60, 0x40);
CPPUNIT_ASSERT_EQUAL (-1, a.id());
a.set_id(1234);