splitted test-sample.c in test-{f,c}vec.c
authorPaul Brossier <piem@piem.org>
Sat, 3 Nov 2007 16:17:46 +0000 (17:17 +0100)
committerPaul Brossier <piem@piem.org>
Sat, 3 Nov 2007 16:17:46 +0000 (17:17 +0100)
tests/src/Makefile.am
tests/src/test-cvec.c [moved from tests/src/test-sample.c with 77% similarity]
tests/src/test-fvec.c [new file with mode: 0644]

index 7c44abfbd419ecfc1c3d84ba5542ebf42fe5b22b..6855040b43af8e77d621b48931d6700ea2c80ab0 100644 (file)
@@ -9,7 +9,8 @@ bin_PROGRAMS = \
        test-mfft \
        test-hist \
        test-scale \
-       test-sample \
+       test-cvec \
+       test-fvec \
        test-window \
        test-filter \
        test-biquad \
similarity index 77%
rename from tests/src/test-sample.c
rename to tests/src/test-cvec.c
index d31c1d2aed79f806a1866a9e453dcece6c91bbfb..e76471d1290c762ee6b177a2f1443a21229846ab 100644 (file)
@@ -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 (file)
index 0000000..8fa1f7c
--- /dev/null
@@ -0,0 +1,12 @@
+#include <aubio.h>
+
+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;
+}
+