diff options
Diffstat (limited to 'tests/buffer.c')
-rw-r--r-- | tests/buffer.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/buffer.c b/tests/buffer.c new file mode 100644 index 0000000..f38a95f --- /dev/null +++ b/tests/buffer.c @@ -0,0 +1,14 @@ +#include <stdio.h> +#include "../src/buffer.h" + +int main (int argc, char *argv[]) { + growable_buffer buf; + init_growable_buffer(&buf); + grow_growable_buffer(&buf, 1000); + if (buf.size != 1000){ + printf("HOLA\n"); + return 1; + } + free_growable_buffer(&buf); + return 0; +} |