Showing the changes to python/tests/test_filter.py (1 of 3 files). Show all
Unified · Split
| @@ -76,6 +76,16 @@ class aubio_filter_test_case(TestCase): · 75 unmodified lines | ||
| 76 | 76 | with self.assertRaises(ValueError): |
| 77 | 77 | f.set_biquad(0., 0., 0, 0., 0.) |
| 78 | 78 | |
| 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 | + | |
| 79 | 89 | class aubio_filter_wrong_params(TestCase): |
| 80 | 90 | |
| 81 | 91 | def test_negative_order(self): |