Rename testing macros
This commit is contained in:
@@ -16,7 +16,7 @@ TestFuncResult test_arena_init(void) {
|
||||
bool result = wapp_mem_arena_init(&arena, ARENA_CAPACITY,
|
||||
WAPP_MEM_ALLOC_RESERVE, false);
|
||||
|
||||
return TEST_RESULT(result);
|
||||
return wapp_tester_result(result);
|
||||
}
|
||||
|
||||
TestFuncResult test_arena_alloc_succeeds_when_within_capacity(void) {
|
||||
@@ -27,14 +27,14 @@ TestFuncResult test_arena_alloc_succeeds_when_within_capacity(void) {
|
||||
array[i] = i * 10;
|
||||
}
|
||||
|
||||
return TEST_RESULT(result);
|
||||
return wapp_tester_result(result);
|
||||
}
|
||||
|
||||
TestFuncResult test_arena_alloc_fails_when_over_capacity(void) {
|
||||
u8 *bytes = wapp_mem_arena_alloc(arena, ARENA_CAPACITY * 2);
|
||||
bool result = bytes == NULL;
|
||||
|
||||
return TEST_RESULT(result);
|
||||
return wapp_tester_result(result);
|
||||
}
|
||||
|
||||
TestFuncResult test_arena_clear(void) {
|
||||
@@ -48,12 +48,12 @@ TestFuncResult test_arena_clear(void) {
|
||||
}
|
||||
}
|
||||
|
||||
return TEST_RESULT(result);
|
||||
return wapp_tester_result(result);
|
||||
}
|
||||
|
||||
TestFuncResult test_arena_destroy(void) {
|
||||
wapp_mem_arena_destroy(&arena);
|
||||
bool result = arena == NULL;
|
||||
|
||||
return TEST_RESULT(result);
|
||||
return wapp_tester_result(result);
|
||||
}
|
||||
|
Reference in New Issue
Block a user