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 (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
56 with self.assertRaises(ValueError):56 with self.assertRaises(ValueError):
57 mfcc(samplerate = -1)57 mfcc(samplerate = -1)
58 58
59 def test_wrong_input_size(self):
60 m = mfcc(buf_size = 1024)
61 with self.assertRaises(ValueError):
62 m(cvec(512))
63
59class aubio_mfcc_compute(TestCase):64class aubio_mfcc_compute(TestCase):
60 65
61 def test_members(self):66 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