diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-02-01 18:15:51 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-02-01 18:15:51 +0100 |
| commit | 0571557ad1a943739806046a24fdaf1e62b32886 (patch) | |
| tree | 22668b5f66de6543e61b4f081c9cee4cb0bc2a95 /tests/test.h | |
| parent | 49eab61d8be0d0a83f6a6c00c0a8fee73cf70992 (diff) | |
| download | nissy-0571557ad1a943739806046a24fdaf1e62b32886.tar.gz nissy-0571557ad1a943739806046a24fdaf1e62b32886.zip | |
Enabled make test and test.sh
Diffstat (limited to '')
| -rw-r--r-- | tests/test.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/tests/test.h b/tests/test.h index 665127c..ac30cdb 100644 --- a/tests/test.h +++ b/tests/test.h | |||
| @@ -1,19 +1,7 @@ | |||
| 1 | #ifndef TEST_H | 1 | #ifndef TEST_H |
| 2 | #define TEST_H | 2 | #define TEST_H |
| 3 | 3 | ||
| 4 | typedef void (*VoidMethod)(void); | 4 | #include <stdio.h> |
| 5 | typedef bool (*TestMethod)(void *); | 5 | #include "fst_tests.h" |
| 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 | 6 | ||
| 19 | #endif | 7 | #endif |
