From: Paul Brossier Date: Sat, 3 Nov 2007 16:17:46 +0000 (+0100) Subject: splitted test-sample.c in test-{f,c}vec.c X-Git-Tag: bzr2git~483 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5c0662a46d9f9332e9a35f70f6f028dc67f1359c;p=aubio.git splitted test-sample.c in test-{f,c}vec.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; +} +