diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-08-24 22:53:21 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-08-27 11:46:25 +0200 |
| commit | 8e478e06c2c09e8d74fcaa6cca84f7db14d23265 (patch) | |
| tree | c1913a33402c9b63f6cbc1288d05d1ef4c48bb7c /include/testing.h | |
| parent | dd2c70e878e4bc7fcf26f33523a45f0d854a29e4 (diff) | |
improved testing & src cleanup
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, \ |
