From 581c8b5e389941e3a56917c39162783a78760ef8 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 3 Dec 2018 15:00:40 +0100 Subject: [PATCH] [tests] mfcc norm/scale with real values --- python/tests/test_mfcc.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/tests/test_mfcc.py b/python/tests/test_mfcc.py index 1a656863..6177a671 100755 --- a/python/tests/test_mfcc.py +++ b/python/tests/test_mfcc.py @@ -116,13 +116,15 @@ class aubio_mfcc_fb_params(TestCase): 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): -- 2.11.0