From a1f6afa69bb25191d4b206e4ecba1557629330bc Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Wed, 28 Feb 2024 22:03:04 +0100 Subject: First commit with project structure --- tests/buffer.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/buffer.c (limited to 'tests/buffer.c') 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 +#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; +} -- cgit v1.2.3