ref: c395732636428f00a1ad2df225b2477ab04c2e61
parent: bf54364819ceb94d388bce516855566b3f1fe10d
author: Paul Brossier <piem@piem.org>
date: Tue Jul 12 16:26:30 EDT 2016
python/tests/test_mfcc.py: test for wrong input size (see #63)
--- a/python/tests/test_mfcc.py
+++ b/python/tests/test_mfcc.py
@@ -56,6 +56,11 @@
with self.assertRaises(ValueError):
mfcc(samplerate = -1)
+ def test_wrong_input_size(self):
+ m = mfcc(buf_size = 1024)
+ with self.assertRaises(ValueError):
+ m(cvec(512))
+
class aubio_mfcc_compute(TestCase):
def test_members(self):