projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf54364
)
python/tests/test_mfcc.py: test for wrong input size (see #63)
author
Paul Brossier
<piem@piem.org>
Tue, 12 Jul 2016 18:26:30 +0000
(20:26 +0200)
committer
Paul Brossier
<piem@piem.org>
Tue, 12 Jul 2016 18:26:30 +0000
(20:26 +0200)
python/tests/test_mfcc.py
patch
|
blob
|
history
diff --git
a/python/tests/test_mfcc.py
b/python/tests/test_mfcc.py
index
6e63f33
..
e7f3b18
100755
(executable)
--- 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):