ref: a114fe078f7c37702a887469609fe467ee3d6dae
parent: 11c0d74ec12d81a37c6c519c385bd14ef79c33c9
author: Paul Brossier <piem@piem.org>
date: Sat Nov 17 15:21:15 EST 2018
[tests] improve aubio_filter coverage
--- a/tests/src/temporal/test-filter.c
+++ b/tests/src/temporal/test-filter.c
@@ -9,8 +9,15 @@
aubio_filter_t *o = new_aubio_filter_c_weighting (44100);
+ if (new_aubio_filter(0))
+ return 1;
+
+ if (aubio_filter_get_samplerate(o) != 44100)
+ return 1;
+
if (aubio_filter_set_c_weighting (o, -1) == 0)
return 1;
+
if (aubio_filter_set_c_weighting (0, 32000) == 0)
return 1;