Rename testing macros

This commit is contained in:
Abdelrahman Said
2024-06-03 07:58:24 +01:00
parent 75bbb82058
commit 6499dd7be9
4 changed files with 15 additions and 14 deletions

View File

@@ -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);
}