Ignore:
Timestamp:
Oct 31, 2018, 7:36:31 PM (21 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master
Children:
088760e, 2410f57a
Parents:
07382d8
Message:

Merge branch 'fix/pyfvec'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_fvec.py

    r07382d8 r7a54b37  
    6060        self.assertRaises(IndexError, a.__getitem__, 3)
    6161        self.assertRaises(IndexError, a.__getitem__, 2)
     62
     63    def test_wrong_dimensions(self):
     64        a = np.array([[[1, 2], [3, 4]]], dtype=float_type)
     65        self.assertRaises(ValueError, fvec, a)
     66
     67    def test_wrong_size(self):
     68        a = np.ndarray([0,], dtype=float_type)
     69        self.assertRaises(ValueError, fvec, a)
    6270
    6371class aubio_wrong_fvec_input(TestCase):
Note: See TracChangeset for help on using the changeset viewer.