History

Merge branch 'master' into feature/pytest

Paul Brossier committed 7 years ago

Commit c1ba75b2 parents adc6e02 6b84d8130 files · +654 −74Browse files

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

Unified · Split

python/tests/test_mfcc.py+4−2
@@ -111,13 +111,15 @@ class aubio_mfcc_fb_params(TestCase): · 110 unmodified lines
111111 def test_set_scale(self):
112112 buf_size, n_filters, n_coeffs, samplerate = 512, 20, 10, 16000
113113 m = mfcc(buf_size, n_filters, n_coeffs, samplerate)
114− m.set_scale(10.)
114+ m.set_scale(10.5)
115+ assert m.get_scale() == 10.5
115116 m(cvec(buf_size))
116117
117118 def test_set_power(self):
118119 buf_size, n_filters, n_coeffs, samplerate = 512, 20, 10, 16000
119120 m = mfcc(buf_size, n_filters, n_coeffs, samplerate)
120− m.set_power(2.)
121+ m.set_power(2.5)
122+ assert m.get_power() == 2.5
121123 m(cvec(buf_size))
122124
123125 def test_set_mel_coeffs(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