Changeset de0a492 for python/tests


Ignore:
Timestamp:
May 3, 2016, 4:19:28 AM (9 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
fcef3fd
Parents:
7aed123
Message:

python/ext/py-filterbank.c: check input size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_filterbank.py

    r7aed123 rde0a492  
    6262        assert_almost_equal ( expected, f.get_coeffs() )
    6363
     64    def test_filterbank_long_cvec(self):
     65        f = filterbank(40, 512)
     66        with self.assertRaises(ValueError):
     67            f(cvec(1024))
     68
     69    def test_filterbank_short_cvec(self):
     70        f = filterbank(40, 512)
     71        with self.assertRaises(ValueError):
     72            f(cvec(256))
     73
    6474if __name__ == '__main__':
    6575    from nose2 import main
Note: See TracChangeset for help on using the changeset viewer.