From 5c0662a46d9f9332e9a35f70f6f028dc67f1359c Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 3 Nov 2007 17:17:46 +0100 Subject: [PATCH] splitted test-sample.c in test-{f,c}vec.c --- tests/src/Makefile.am | 3 ++- tests/src/{test-sample.c => test-cvec.c} | 2 -- tests/src/test-fvec.c | 12 ++++++++++++ 3 files changed, 14 insertions(+), 3 deletions(-) rename tests/src/{test-sample.c => test-cvec.c} (77%) create mode 100644 tests/src/test-fvec.c diff --git a/tests/src/Makefile.am b/tests/src/Makefile.am index 7c44abfb..6855040b 100644 --- a/tests/src/Makefile.am +++ b/tests/src/Makefile.am @@ -9,7 +9,8 @@ bin_PROGRAMS = \ test-mfft \ test-hist \ test-scale \ - test-sample \ + test-cvec \ + test-fvec \ test-window \ test-filter \ test-biquad \ diff --git a/tests/src/test-sample.c b/tests/src/test-cvec.c similarity index 77% rename from tests/src/test-sample.c rename to tests/src/test-cvec.c index d31c1d2a..e76471d1 100644 --- a/tests/src/test-sample.c +++ b/tests/src/test-cvec.c @@ -4,9 +4,7 @@ int main(){ /* allocate some memory */ uint_t win_s = 1024; /* window size */ uint_t channels = 1; /* number of channel */ - fvec_t * in = new_fvec (win_s, channels); /* input buffer */ cvec_t * sp = new_cvec (win_s, channels); /* input buffer */ - del_fvec(in); del_cvec(sp); return 0; diff --git a/tests/src/test-fvec.c b/tests/src/test-fvec.c new file mode 100644 index 00000000..8fa1f7c6 --- /dev/null +++ b/tests/src/test-fvec.c @@ -0,0 +1,12 @@ +#include + +int main(){ + /* allocate some memory */ + uint_t win_s = 1024; /* window size */ + uint_t channels = 1; /* number of channel */ + fvec_t * in = new_fvec (win_s, channels); /* input buffer */ + del_fvec(in); + + return 0; +} + -- 2.26.2