History

[test] improve coverage of filters

Paul Brossier committed 7 years ago

Commit b41672c1 parent f7af4401 file · +10 −0Browse files

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

Unified · Split

python/tests/test_filter.py+10−0
@@ -77,6 +77,16 @@ class aubio_filter_test_case(TestCase): · 76 unmodified lines
77 with self.assertRaises(ValueError):77 with self.assertRaises(ValueError):
78 f.set_biquad(0., 0., 0, 0., 0.)78 f.set_biquad(0., 0., 0, 0., 0.)
79 79
80 def test_all_available_presets(self):
81 f = digital_filter(7)
82 for sr in [8000, 11025, 16000, 22050, 24000, 32000,
83 44100, 48000, 88200, 96000, 192000]:
84 f.set_a_weighting(sr)
85 f = digital_filter(5)
86 for sr in [8000, 11025, 16000, 22050, 24000, 32000,
87 44100, 48000, 88200, 96000, 192000]:
88 f.set_c_weighting(sr)
89
80class aubio_filter_wrong_params(TestCase):90class aubio_filter_wrong_params(TestCase):
81 91
82 def test_negative_order(self):92 def test_negative_order(self):

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