diff options
Diffstat (limited to 'include/testing.h')
| -rw-r--r-- | include/testing.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/testing.h b/include/testing.h index 754733b..1ca460b 100644 --- a/include/testing.h +++ b/include/testing.h @@ -2,6 +2,14 @@ #include <stdio.h> #include <string.h> +#include "../include/memory.h" + +typedef struct { + size size; + byte *content; +} MemoryFile; +MemoryFile load_file(Arena *a, const char *filename); + #define t_assert_equal(a, b) \ if (!(a == b)) { \ fprintf(stderr, \ |
