History

Merge branch 'master' into feature/pytest

Paul Brossier committed 7 years ago

Commit d06c9a42 parents ff28d81 a114fe03 files · +62 −1Browse files

Showing the changes to python/tests/test_filter.py (1 of 3 files). Show all

Unified · Split

python/tests/test_filter.py+10−0
@@ -76,6 +76,16 @@ class aubio_filter_test_case(TestCase): · 75 unmodified lines
7676 with self.assertRaises(ValueError):
7777 f.set_biquad(0., 0., 0, 0., 0.)
7878
79+ def test_all_available_presets(self):
80+ f = digital_filter(7)
81+ for sr in [8000, 11025, 16000, 22050, 24000, 32000,
82+ 44100, 48000, 88200, 96000, 192000]:
83+ f.set_a_weighting(sr)
84+ f = digital_filter(5)
85+ for sr in [8000, 11025, 16000, 22050, 24000, 32000,
86+ 44100, 48000, 88200, 96000, 192000]:
87+ f.set_c_weighting(sr)
88+
7989 class aubio_filter_wrong_params(TestCase):
8090
8191 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