History

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

Paul Brossier committed 10 years ago

Commit aba02791 parent 2f4d9b71 file · +9 −0Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/tests/test_specdesc.py+9−0
@@ -232,6 +232,15 @@ class aubio_specdesc(TestCase): · 231 unmodified lines
232232 rolloff = i
233233 assert_equal (rolloff, o(c))
234234
235+class 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
236245 if __name__ == '__main__':
237246 from unittest import main

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