1 #include "NoteTest.hpp"
2 #include "evoral/Note.hpp"
3 #include "evoral/Beats.hpp"
6 CPPUNIT_TEST_SUITE_REGISTRATION (NoteTest);
8 using namespace Evoral;
15 Note<Time> a(0, Beats(1.0), Beats(2.0), 60, 0x40);
17 CPPUNIT_ASSERT (a == b);
19 // Broken due to event double free!
20 // Note<Time> c(1, Beats(3.0), Beats(4.0), 61, 0x41);
22 // CPPUNIT_ASSERT (a == c);
28 Note<Time> a(0, Beats(1.0), Beats(2.0), 60, 0x40);
29 CPPUNIT_ASSERT_EQUAL (-1, a.id());
32 CPPUNIT_ASSERT_EQUAL (1234, a.id());