projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11c0d74
)
[tests] improve aubio_filter coverage
author
Paul Brossier
<piem@piem.org>
Sat, 17 Nov 2018 19:21:15 +0000
(20:21 +0100)
committer
Paul Brossier
<piem@piem.org>
Sat, 17 Nov 2018 19:21:15 +0000
(20:21 +0100)
tests/src/temporal/test-filter.c
patch
|
blob
|
history
diff --git
a/tests/src/temporal/test-filter.c
b/tests/src/temporal/test-filter.c
index
8429b9f
..
cc9c8f5
100644
(file)
--- a/
tests/src/temporal/test-filter.c
+++ b/
tests/src/temporal/test-filter.c
@@
-9,8
+9,15
@@
int main (void)
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;