Skip to content

Commit

Permalink
Moved test suite forward declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
ccgargantua committed Mar 11, 2024
1 parent d117fac commit c2e048a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 10 additions & 0 deletions test.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ TEST_ARRAY_EQUAL(a, b, s) | TEST_ARRAY_EQUAL will fail if any elements differ
#include "test.h"


void test_arena_create(void);
void test_arena_alloc(void);
void test_arena_alloc_aligned(void);
void test_arena_copy(void);
void test_arena_clear(void);
void test_arena_get_allocation_struct(void);
void test_arena_add_allocation(void);
void test_arena_delete_allocation_list(void);


int main(void)
{
SUITE(test_arena_create, "Arena creation suite");
Expand Down
10 changes: 0 additions & 10 deletions test.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,6 @@
#include <stdlib.h>


void test_arena_create(void);
void test_arena_alloc(void);
void test_arena_alloc_aligned(void);
void test_arena_copy(void);
void test_arena_clear(void);
void test_arena_get_allocation_struct(void);
void test_arena_add_allocation(void);
void test_arena_delete_allocation_list(void);


int passed_tests = 0;
int total_tests = 0;
int temp_passed;
Expand Down

0 comments on commit c2e048a

Please sign in to comment.