diff options
Diffstat (limited to 'test/test_header.c')
| -rw-r--r-- | test/test_header.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_header.c b/test/test_header.c index 0525614..9a1e680 100644 --- a/test/test_header.c +++ b/test/test_header.c @@ -45,3 +45,11 @@ char *test_header_read(void) { stream_free(s); return NULL; } + + +char *test_header_creation(void) { + struct header *h = create_header(); + mu_assert("Header allocation failed", h != NULL); + mu_assert("Incorrect XP3 header", !memcmp(h->magic, XP3_MAGIC, 11)); + return NULL; +} |