diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-01-22 00:23:32 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-01-22 00:23:32 +0100 |
| commit | aaeb153ce869567f4f88f083dba28445216714f6 (patch) | |
| tree | 00848a7ee91478f68f26226d10685c579079fe88 /tests/test.h | |
| parent | 6dc6d1004393b7c093a3aef7456af67662d56fee (diff) | |
| download | nissy-aaeb153ce869567f4f88f083dba28445216714f6.tar.gz nissy-aaeb153ce869567f4f88f083dba28445216714f6.zip | |
Started working on testing (broken for now)
Diffstat (limited to 'tests/test.h')
| -rw-r--r-- | tests/test.h | 19 |
1 files changed, 19 insertions, 0 deletions
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 @@ | |||
| 1 | #ifndef TEST_H | ||
| 2 | #define TEST_H | ||
| 3 | |||
| 4 | typedef void (*VoidMethod)(void); | ||
| 5 | typedef bool (*TestMethod)(void *); | ||
| 6 | |||
| 7 | typedef struct { | ||
| 8 | char * name; | ||
| 9 | TestMethod t; | ||
| 10 | void ** cases; | ||
| 11 | } Test; | ||
| 12 | |||
| 13 | typedef struct { | ||
| 14 | VoidMethod setup; | ||
| 15 | Test ** tests; | ||
| 16 | VoidMethod teardown; | ||
| 17 | } TestSuite; | ||
| 18 | |||
| 19 | #endif | ||
