summaryrefslogtreecommitdiff
path: root/source/kit_test/test.h
diff options
context:
space:
mode:
authorMitya Selivanov <0x7fffff@guattari.ru>2022-08-08 04:33:27 +0400
committerMitya Selivanov <0x7fffff@guattari.ru>2022-08-08 04:33:27 +0400
commit65a298e7415e6785d30681cf0cb9aae0e4965fbe (patch)
treeff28e9dbed5779fb2841b9db47c74091081fca19 /source/kit_test/test.h
parent47f271b51f6855ee531a06a1e582e78a66a763b0 (diff)
downloadkit-65a298e7415e6785d30681cf0cb9aae0e4965fbe.zip
Refactor
Diffstat (limited to 'source/kit_test/test.h')
-rw-r--r--source/kit_test/test.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/source/kit_test/test.h b/source/kit_test/test.h
index 9c2fea9..f8e79dc 100644
--- a/source/kit_test/test.h
+++ b/source/kit_test/test.h
@@ -6,7 +6,6 @@ extern "C" {
#endif
#include <stddef.h>
-#include <string.h>
#ifndef KIT_TEST_FILE
# define KIT_TEST_FILE kit_test
@@ -20,17 +19,13 @@ extern "C" {
# define KIT_TEST_ASSERTIONS_LIMIT 0x50
#endif
-#ifndef KIT_TEST_STRING_SIZE
-# define KIT_TEST_STRING_SIZE 0x100
-#endif
-
typedef void (*kit_test_report_fn)(int test_index, char const *file,
int line, int ok);
typedef void (*kit_test_run_fn)(
int kit_test_index_, kit_test_report_fn kit_test_report_fn_);
typedef struct {
- char test_name[KIT_TEST_STRING_SIZE];
+ char const *test_name;
kit_test_run_fn test_fn;
int assertions;
char const *file[KIT_TEST_ASSERTIONS_LIMIT];