[tests] increase pvoc coverage
authorPaul Brossier <piem@piem.org>
Mon, 26 Nov 2018 10:49:03 +0000 (11:49 +0100)
committerPaul Brossier <piem@piem.org>
Mon, 26 Nov 2018 10:49:03 +0000 (11:49 +0100)
tests/src/spectral/test-phasevoc.c

index 12af4e6..2dec675 100644 (file)
@@ -13,6 +13,13 @@ int main (void)
   // 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);