tests/src/test-lvec.c, tests/src/test-fmat.c: add boilerplate
authorPaul Brossier <piem@piem.org>
Tue, 10 Jul 2012 22:29:59 +0000 (15:29 -0700)
committerPaul Brossier <piem@piem.org>
Tue, 10 Jul 2012 22:29:59 +0000 (15:29 -0700)
tests/src/test-fmat.c [new file with mode: 0644]
tests/src/test-lvec.c [new file with mode: 0644]

diff --git a/tests/src/test-fmat.c b/tests/src/test-fmat.c
new file mode 100644 (file)
index 0000000..89daa29
--- /dev/null
@@ -0,0 +1,11 @@
+#include <aubio.h>
+
+int main(){
+        uint_t length = 1024;                     /* length */
+        uint_t height = 1024;                     /* height */
+        fmat_t * mat = new_fmat (length, height); /* input buffer */
+        fmat_print(mat);
+        del_fmat(mat);
+        return 0;
+}
+
diff --git a/tests/src/test-lvec.c b/tests/src/test-lvec.c
new file mode 100644 (file)
index 0000000..4fdc999
--- /dev/null
@@ -0,0 +1,11 @@
+#include <aubio.h>
+
+int main(){
+        /* allocate some memory */
+        uint_t win_s      = 1024;                       /* window size */
+        lvec_t * sp       = new_lvec (win_s); /* input buffer */
+        del_lvec(sp);
+
+        return 0;
+}
+