History

[py] remove duplicate tests

Paul Brossier committed 8 years ago

Commit ed09ba71 parent 893e6991 file · +0 −31Browse files

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

Unified · Split

python/tests/test_filterbank_mel.py+0−31
@@ -47,37 +47,6 @@ class aubio_filterbank_mel_test_case(TestCase): · 46 unmodified lines
47 [ 0.02070313, 0.02138672, 0.02127604, 0.02135417,47 [ 0.02070313, 0.02138672, 0.02127604, 0.02135417,
48 0.02133301, 0.02133301, 0.02133311, 0.02133334, 0.02133345])48 0.02133301, 0.02133301, 0.02133311, 0.02133334, 0.02133345])
49 49
50 def test_triangle_freqs_normal(self):
51 """ create a filter with set_triangle_bands, normal mode """
52 f = filterbank(3, 1024)
53 freq_list = [100, 1000, 10000, 15000, 20000]
54 freqs = np.array(freq_list, dtype = float_type)
55 f.set_triangle_bands(freqs, 44100)
56
57 def test_triangle_freqs_too_long(self):
58 """ create a filter with freq_list too long """
59 f = filterbank(2, 1024)
60 freq_list = [100, 1000, 10000, 15000, 20000]
61 freqs = np.array(freq_list, dtype = float_type)
62 with assert_warns(UserWarning):
63 f.set_triangle_bands(freqs, 44100)
64
65 def test_triangle_freqs_too_short(self):
66 """ create a filter with freq_list too short """
67 f = filterbank(4, 1024)
68 freq_list = [100, 1000, 10000, 15000, 20000]
69 freqs = np.array(freq_list, dtype = float_type)
70 with assert_warns(UserWarning):
71 f.set_triangle_bands(freqs, 44100)
72
73 def test_above_nyquist(self):
74 """ create a filter with freq_list too short """
75 f = filterbank(3, 1024)
76 freq_list = [100, 1000, 10000, 15000, 23000]
77 freqs = np.array(freq_list, dtype = float_type)
78 with assert_warns(UserWarning):
79 f.set_triangle_bands(freqs, 44100)
80
81 def test_triangle_freqs_with_zeros(self):50 def test_triangle_freqs_with_zeros(self):
82 """make sure set_triangle_bands works when list starts with 0"""51 """make sure set_triangle_bands works when list starts with 0"""
83 freq_list = [0, 40, 80]52 freq_list = [0, 40, 80]

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