diff --git a/libs/evoral/test/sequence.cpp b/libs/evoral/test/sequence.cpp index bdeb2aa477..1398274841 100644 --- a/libs/evoral/test/sequence.cpp +++ b/libs/evoral/test/sequence.cpp @@ -3,15 +3,56 @@ CPPUNIT_TEST_SUITE_REGISTRATION( SequenceTest ); +using namespace std; + void SequenceTest::createTest (void) { - DummyTypeMap type_map; - MySequence seq(type_map, 100); - - CPPUNIT_ASSERT_EQUAL(size_t(0), seq.sysexes().size()); - CPPUNIT_ASSERT_EQUAL(size_t(100), seq.notes().size()); - CPPUNIT_ASSERT(seq.notes().begin() != seq.notes().end()); + CPPUNIT_ASSERT_EQUAL(size_t(0), seq->sysexes().size()); + CPPUNIT_ASSERT_EQUAL(size_t(0), seq->notes().size()); + CPPUNIT_ASSERT(seq->notes().begin() == seq->notes().end()); } +void +SequenceTest::preserveEventOrderingTest (void) +{ + vector > > inserted_events; + + seq->start_write(); + + for (Notes::const_iterator i = test_notes.begin(); i != test_notes.end(); ++i) { + uint8_t buffer[2]; + Event