Changeset ed09ba7c for python


Ignore:
Timestamp:
Nov 10, 2018, 12:00:06 PM (8 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/timestretch, master
Children:
8354cb8
Parents:
893e699
Message:

[py] remove duplicate tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_filterbank_mel.py

    r893e699 red09ba7c  
    4747                [ 0.02070313, 0.02138672, 0.02127604, 0.02135417,
    4848                    0.02133301, 0.02133301, 0.02133311, 0.02133334, 0.02133345])
    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)
    8049
    8150    def test_triangle_freqs_with_zeros(self):
Note: See TracChangeset for help on using the changeset viewer.