[tests] check creating filterbank with wrong parameters returns null
authorPaul Brossier <piem@piem.org>
Sat, 24 Nov 2018 15:28:01 +0000 (16:28 +0100)
committerPaul Brossier <piem@piem.org>
Sat, 24 Nov 2018 15:28:01 +0000 (16:28 +0100)
tests/src/spectral/test-filterbank.c

index 8b487c2..769d144 100644 (file)
@@ -8,6 +8,9 @@ int main (void)
   cvec_t *in_spec = new_cvec (win_s); // input vector of samples
   fvec_t *out_filters = new_fvec (n_filters); // per-band outputs
 
+  if (new_aubio_filterbank(0, win_s)) return 1;
+  if (new_aubio_filterbank(n_filters, 0)) return 1;
+
   // create filterbank object
   aubio_filterbank_t *o = new_aubio_filterbank (n_filters, win_s);