diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_synthesis.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test_synthesis.cpp b/tests/test_synthesis.cpp index f4d215d..50ca6ed 100644 --- a/tests/test_synthesis.cpp +++ b/tests/test_synthesis.cpp @@ -39,8 +39,12 @@ protected: frames = synth->synth(frames); for(int i = 0; i < frames.size(); i++) { - CPPUNIT_ASSERT(frames[i]->num_peaks() > 0); - CPPUNIT_ASSERT(frames[i]->num_partials() > 0); + // if Loris thinPeaks is used, final frame will have no peaks + // so don't check it + if(i < frames.size() - 1) { + CPPUNIT_ASSERT(frames[i]->num_peaks() > 0); + CPPUNIT_ASSERT(frames[i]->num_partials() > 0); + } double energy = 0.f; for(int j = 0; j < synth->hop_size(); j++) { |