History

Merge branch 'fix/pyfvec'

Paul Brossier committed 8 years ago

Commit 7a54b371 parent 07382d82 files · +17 −14Browse files

Showing the changes to python/tests (1 of 2 files). Show all

Unified · Split

python/tests/test_fvec.py+8−0
@@ -60,6 +60,14 @@ class aubio_fvec_wrong_values(TestCase): · 59 unmodified lines
6060 self.assertRaises(IndexError, a.__getitem__, 3)
6161 self.assertRaises(IndexError, a.__getitem__, 2)
6262
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)
70+
6371 class aubio_wrong_fvec_input(TestCase):
6472 """ uses min_removal to test PyAubio_IsValidVector """
6573

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t