ref: 581c8b5e389941e3a56917c39162783a78760ef8
parent: bde4f641feff4cabff716064342ce600d762ce4d
author: Paul Brossier <piem@piem.org>
date: Mon Dec 3 10:00:40 EST 2018
[tests] mfcc norm/scale with real values
--- a/python/tests/test_mfcc.py
+++ b/python/tests/test_mfcc.py
@@ -116,13 +116,15 @@
def test_set_scale(self):
buf_size, n_filters, n_coeffs, samplerate = 512, 20, 10, 16000
m = mfcc(buf_size, n_filters, n_coeffs, samplerate)
- m.set_scale(10.)
+ m.set_scale(10.5)
+ assert m.get_scale() == 10.5
m(cvec(buf_size))
def test_set_power(self):
buf_size, n_filters, n_coeffs, samplerate = 512, 20, 10, 16000
m = mfcc(buf_size, n_filters, n_coeffs, samplerate)
- m.set_power(2.)
+ m.set_power(2.5)
+ assert m.get_power() == 2.5
m(cvec(buf_size))
def test_set_mel_coeffs(self):