ref: cbe780987d29d6332903a6dac46314e3f48baa3b
parent: fd1d4d5becccaf0ecbcbe88b17baeb89488d81f9
author: Paul Brossier <piem@piem.org>
date: Wed Dec 19 11:51:24 EST 2018
[tests] improve test-filter coverage
--- a/tests/src/temporal/test-filter.c
+++ b/tests/src/temporal/test-filter.c
@@ -9,17 +9,13 @@
aubio_filter_t *o = new_aubio_filter_c_weighting (44100);
- if (new_aubio_filter(0))
- return 1;
+ if (new_aubio_filter(0)) return 1;
- if (aubio_filter_get_samplerate(o) != 44100)
- 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 (o, -1) == 0) return 1;
- if (aubio_filter_set_c_weighting (0, 32000) == 0)
- return 1;
+ if (aubio_filter_set_c_weighting (0, 32000) == 0) return 1;
in->data[impulse_at] = 0.5;
fvec_print (in);
@@ -29,10 +25,9 @@
o = new_aubio_filter_a_weighting (32000);
- if (aubio_filter_set_a_weighting (o, -1) == 0)
- return 1;
- if (aubio_filter_set_a_weighting (0, 32000) == 0)
- return 1;
+ if (aubio_filter_set_a_weighting (o, -1) == 0) return 1;
+
+ if (aubio_filter_set_a_weighting (0, 32000) == 0) return 1;
in->data[impulse_at] = 0.5;
fvec_print (in);