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
60 self.assertRaises(IndexError, a.__getitem__, 3)60 self.assertRaises(IndexError, a.__getitem__, 3)
61 self.assertRaises(IndexError, a.__getitem__, 2)61 self.assertRaises(IndexError, a.__getitem__, 2)
62 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)
70
63class aubio_wrong_fvec_input(TestCase):71class aubio_wrong_fvec_input(TestCase):
64 """ uses min_removal to test PyAubio_IsValidVector """72 """ uses min_removal to test PyAubio_IsValidVector """
65 73

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