From c395732636428f00a1ad2df225b2477ab04c2e61 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Tue, 12 Jul 2016 20:26:30 +0200 Subject: [PATCH] python/tests/test_mfcc.py: test for wrong input size (see #63) --- python/tests/test_mfcc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/tests/test_mfcc.py b/python/tests/test_mfcc.py index 6e63f332..e7f3b186 100755 --- a/python/tests/test_mfcc.py +++ b/python/tests/test_mfcc.py @@ -56,6 +56,11 @@ class aubio_mfcc_wrong_params(TestCase): 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): -- 2.11.0