Showing the changes to python/tests (1 of 1 file). Show all
Unified · Split
| @@ -56,6 +56,11 @@ class aubio_mfcc_wrong_params(TestCase): · 55 unmodified lines | ||
| 56 | 56 | with self.assertRaises(ValueError): |
| 57 | 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 | + | |
| 59 | 64 | class aubio_mfcc_compute(TestCase): |
| 60 | 65 | |
| 61 | 66 | def test_members(self): |