Ignore:
Timestamp:
May 14, 2016, 5:28:58 AM (4 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
b6b65cb
Parents:
2f4d9b7
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_specdesc.py

    r2f4d9b7 raba0279  
    233233        assert_equal (rolloff, o(c))
    234234
     235class aubio_specdesc_wrong(TestCase):
     236
     237    def test_negative(self):
     238        with self.assertRaises(ValueError):
     239            o = specdesc("default", -10)
     240
     241    def test_unknown(self):
     242        # FIXME should fail?
     243        o = specdesc("unknown", 512)
    235244
    236245if __name__ == '__main__':
Note: See TracChangeset for help on using the changeset viewer.