shithub: aubio

Download patch

ref: 099776df95e3dcf16da679d254d547c3d70f6a57
parent: 804c8eb157abfed45e3928ce75a0ecbe7d68751c
author: Paul Brossier <piem@piem.org>
date: Mon Nov 26 06:49:03 EST 2018

[tests] increase pvoc coverage

--- a/tests/src/spectral/test-phasevoc.c
+++ b/tests/src/spectral/test-phasevoc.c
@@ -13,6 +13,13 @@
   // allocate fft and other memory space
   aubio_pvoc_t * pv = new_aubio_pvoc(win_s,hop_s);
 
+  if (new_aubio_pvoc(win_s, 0)) return 1;
+
+  if (aubio_pvoc_get_win(pv) != win_s) return 1;
+  if (aubio_pvoc_get_hop(pv) != hop_s) return 1;
+
+  if (aubio_pvoc_set_window(pv, "hanningz") != 0) return 1;
+
   // fill input with some data
   fvec_set_all (in, 1.);
   fvec_print (in);