diff options
author | John Glover <j@johnglover.net> | 2013-06-15 23:38:39 +0200 |
---|---|---|
committer | John Glover <j@johnglover.net> | 2013-06-15 23:38:39 +0200 |
commit | c357d6caf3eb64d3fc2604868b696c1e34e8d16e (patch) | |
tree | b1b595dfa7790a8a9520413ce133850e79713ec0 /tests/test_partial_tracking.h | |
parent | 60ed1e8252e6e4f0cbc8c0a5c9aea124bdd2a01b (diff) | |
download | simpl-c357d6caf3eb64d3fc2604868b696c1e34e8d16e.tar.gz simpl-c357d6caf3eb64d3fc2604868b696c1e34e8d16e.tar.bz2 simpl-c357d6caf3eb64d3fc2604868b696c1e34e8d16e.zip |
Add basic tests for SndObjPartialTracking.
Fix reading invalid memory address when looping over partials.
Diffstat (limited to 'tests/test_partial_tracking.h')
-rw-r--r-- | tests/test_partial_tracking.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/test_partial_tracking.h b/tests/test_partial_tracking.h index c548984..e5715de 100644 --- a/tests/test_partial_tracking.h +++ b/tests/test_partial_tracking.h @@ -58,6 +58,32 @@ protected: void test_streaming(); }; + +// --------------------------------------------------------------------------- +// TestSndObjPartialTracking +// --------------------------------------------------------------------------- +class TestSndObjPartialTracking : public CPPUNIT_NS::TestCase { + CPPUNIT_TEST_SUITE(TestSndObjPartialTracking); + CPPUNIT_TEST(test_basic); + CPPUNIT_TEST(test_change_num_partials); + CPPUNIT_TEST(test_peaks); + CPPUNIT_TEST(test_streaming); + CPPUNIT_TEST_SUITE_END(); + +public: + void setUp(); + +protected: + SndObjPeakDetection _pd; + SndObjPartialTracking _pt; + SndfileHandle _sf; + + void test_basic(); + void test_change_num_partials(); + void test_peaks(); + void test_streaming(); +}; + // --------------------------------------------------------------------------- // TestLorisPartialTracking // --------------------------------------------------------------------------- |