History

python/tests/test_mfcc.py: test for wrong input size (see #63)

Paul Brossier committed 10 years ago

Commit c3957321 parent bf543641 file · +5 −0Browse files

Showing the changes to python/tests (1 of 1 file). Show all

Unified · Split

python/tests/test_mfcc.py+5−0
@@ -56,6 +56,11 @@ class aubio_mfcc_wrong_params(TestCase): · 55 unmodified lines
5656 with self.assertRaises(ValueError):
5757 mfcc(samplerate = -1)
5858
59+ def test_wrong_input_size(self):
60+ m = mfcc(buf_size = 1024)
61+ with self.assertRaises(ValueError):
62+ m(cvec(512))
63+
5964 class aubio_mfcc_compute(TestCase):
6065
6166 def test_members(self):

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t