diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2024-02-28 22:03:04 +0100 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2024-02-28 22:08:20 +0100 |
commit | a1f6afa69bb25191d4b206e4ecba1557629330bc (patch) | |
tree | 3041324b6f0932ef036e9de230e965a4400f2b08 /tests |
First commit with project structure
Diffstat (limited to 'tests')
-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; +} |