From 446b214b46e5cc61987286868e484458193e3ea1 Mon Sep 17 00:00:00 2001 From: Hans Baier Date: Sat, 7 Feb 2009 06:57:02 +0000 Subject: [PATCH] * Evoral: first successful read from Sequence *Evoral: added debug option to wscript git-svn-id: svn://localhost/ardour2/branches/3.0@4497 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/evoral/test/sequence.cpp | 53 ++++++++++++++++-- libs/evoral/test/sequence.hpp | 99 +++++++++++++++++++++++++++++---- libs/evoral/test/testrunner.cpp | 3 + libs/evoral/wscript | 10 ++++ 4 files changed, 147 insertions(+), 18 deletions(-) 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