diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/README | 2 | ||||
| -rw-r--r-- | include/kpl.h | 3 | ||||
| -rw-r--r-- | include/kpl_test.h | 15 |
3 files changed, 20 insertions, 0 deletions
diff --git a/include/README b/include/README index f65c345..b182099 100644 --- a/include/README +++ b/include/README @@ -4,4 +4,6 @@ Headers Complier Flags: +KPL_COLOR_OFF # Turn off colored pretty printing + --- diff --git a/include/kpl.h b/include/kpl.h index 99ddf32..ad76991 100644 --- a/include/kpl.h +++ b/include/kpl.h @@ -1,2 +1,5 @@ #pragma once + +#include "kpl/color.h" +#include "kpl/type.h" diff --git a/include/kpl_test.h b/include/kpl_test.h index 1a61a30..6d19eff 100644 --- a/include/kpl_test.h +++ b/include/kpl_test.h @@ -1,4 +1,19 @@ #pragma once +// KPL testing framework + #include "kpl.h" + +typedef struct _kpl_test kpl_test; + +typedef void kpl_test_function(__attribute__((unused)) kpl_test *_test); + +typedef struct _kpl_test { + int32_t error_line_number; + char *file_name, *test_name, *error_message; + kpl_test_function *test_function; + struct _kpl_test *next_test; +} kpl_test; + +void kpl_test_add(kpl_test *_test); |
