From aaeb153ce869567f4f88f083dba28445216714f6 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 22 Jan 2023 00:23:32 +0100 Subject: Started working on testing (broken for now) --- tests/test.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/test.h (limited to 'tests/test.h') diff --git a/tests/test.h b/tests/test.h new file mode 100644 index 0000000..665127c --- /dev/null +++ b/tests/test.h @@ -0,0 +1,19 @@ +#ifndef TEST_H +#define TEST_H + +typedef void (*VoidMethod)(void); +typedef bool (*TestMethod)(void *); + +typedef struct { + char * name; + TestMethod t; + void ** cases; +} Test; + +typedef struct { + VoidMethod setup; + Test ** tests; + VoidMethod teardown; +} TestSuite; + +#endif -- cgit v1.3