Changeset ed938a2 for python/tests


Ignore:
Timestamp:
May 14, 2016, 5:21:01 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:
36e8956
Parents:
3122327
Message:

python/tests/test_filterbank.py: check for wrong values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_filterbank.py

    r3122327 red938a2  
    6262        assert_almost_equal ( expected, f.get_coeffs() )
    6363
     64class aubio_filterbank_wrong_values(TestCase):
     65
     66    def test_negative_window(self):
     67        self.assertRaises(ValueError, filterbank, 40, -20)
     68
     69    def test_negative_filters(self):
     70        self.assertRaises(RuntimeError, filterbank, -40, 1024)
     71
    6472    def test_filterbank_long_cvec(self):
    6573        f = filterbank(40, 512)
Note: See TracChangeset for help on using the changeset viewer.