Showing the changes to python/tests (1 of 1 file). Show all
Unified · Split
| @@ -77,6 +77,16 @@ class aubio_filter_test_case(TestCase): · 76 unmodified lines | ||
| 77 | 77 | with self.assertRaises(ValueError): |
| 78 | 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 | + | |
| 80 | 90 | class aubio_filter_wrong_params(TestCase): |
| 81 | 91 | |
| 82 | 92 | def test_negative_order(self): |