Rename Tester

This commit is contained in:
2026-06-26 15:53:08 +01:00
parent cdca775681
commit 28f95b1d41
34 changed files with 479 additions and 479 deletions
+26 -26
View File
@@ -1,7 +1,7 @@
#include "test_i32_array.h"
#include "wapp.h"
TestFuncResult test_i32_array(void) {
WpTestFuncResult test_i32_array(void) {
b8 result;
I32Array array = wapp_array(i32, 1, 2, 3, 4, 5, 6, 7);
@@ -19,10 +19,10 @@ TestFuncResult test_i32_array(void) {
running = index < count;
}
return wapp_tester_result(result);
return wpTesterResult(result);
}
TestFuncResult test_i32_array_with_capacity(void) {
WpTestFuncResult test_i32_array_with_capacity(void) {
b8 result;
I32Array array1 = wapp_array_with_capacity(i32, 64, ARRAY_INIT_NONE);
@@ -31,10 +31,10 @@ TestFuncResult test_i32_array_with_capacity(void) {
I32Array array2 = wapp_array_with_capacity(i32, 64, ARRAY_INIT_FILLED);
result = wapp_array_count(array2) == 64 && wapp_array_capacity(array2) == 64;
return wapp_tester_result(result);
return wpTesterResult(result);
}
TestFuncResult test_i32_array_get(void) {
WpTestFuncResult test_i32_array_get(void) {
b8 result = true;
I32Array array = wapp_array(i32, 0, 1, 2, 3, 4, 5, 6, 7, 8);
@@ -51,10 +51,10 @@ TestFuncResult test_i32_array_get(void) {
running = index < count;
}
return wapp_tester_result(result);
return wpTesterResult(result);
}
TestFuncResult test_i32_array_set(void) {
WpTestFuncResult test_i32_array_set(void) {
b8 result = true;
I32Array array = wapp_array(i32, 0, 1, 2, 3, 4, 5, 6, 7, 8);
@@ -73,10 +73,10 @@ TestFuncResult test_i32_array_set(void) {
running = index < count;
}
return wapp_tester_result(result);
return wpTesterResult(result);
}
TestFuncResult test_i32_array_append_capped(void) {
WpTestFuncResult test_i32_array_append_capped(void) {
b8 result;
I32Array array = wapp_array_with_capacity(i32, 64, ARRAY_INIT_NONE);
@@ -93,10 +93,10 @@ TestFuncResult test_i32_array_append_capped(void) {
result = result && wapp_array_count(array) == 2;
return wapp_tester_result(result);
return wpTesterResult(result);
}
TestFuncResult test_i32_array_extend_capped(void) {
WpTestFuncResult test_i32_array_extend_capped(void) {
b8 result;
I32Array array1 = wapp_array(i32, 1, 2, 3, 4);
@@ -108,10 +108,10 @@ TestFuncResult test_i32_array_extend_capped(void) {
result = result && wapp_array_count(array1) == 6;
return wapp_tester_result(result);
return wpTesterResult(result);
}
TestFuncResult test_i32_array_copy_capped(void) {
WpTestFuncResult test_i32_array_copy_capped(void) {
b8 result;
I32Array src = wapp_array(i32, 1, 2, 3, 4, 5);
@@ -144,10 +144,10 @@ TestFuncResult test_i32_array_copy_capped(void) {
running = index < expected_count;
}
return wapp_tester_result(result);
return wpTesterResult(result);
}
TestFuncResult test_i32_array_alloc_capacity(void) {
WpTestFuncResult test_i32_array_alloc_capacity(void) {
b8 result;
Allocator allocator = wapp_mem_arena_allocator_init(MiB(4));
@@ -158,10 +158,10 @@ TestFuncResult test_i32_array_alloc_capacity(void) {
wapp_mem_arena_allocator_destroy(&allocator);
return wapp_tester_result(result);
return wpTesterResult(result);
}
TestFuncResult test_i32_array_append_alloc(void) {
WpTestFuncResult test_i32_array_append_alloc(void) {
b8 result;
Allocator allocator = wapp_mem_arena_allocator_init(MiB(4));
@@ -186,10 +186,10 @@ TestFuncResult test_i32_array_append_alloc(void) {
wapp_mem_arena_allocator_destroy(&allocator);
return wapp_tester_result(result);
return wpTesterResult(result);
}
TestFuncResult test_i32_array_extend_alloc(void) {
WpTestFuncResult test_i32_array_extend_alloc(void) {
b8 result;
Allocator allocator = wapp_mem_arena_allocator_init(MiB(4));
@@ -205,10 +205,10 @@ TestFuncResult test_i32_array_extend_alloc(void) {
wapp_mem_arena_allocator_destroy(&allocator);
return wapp_tester_result(result);
return wpTesterResult(result);
}
TestFuncResult test_i32_array_copy_alloc(void) {
WpTestFuncResult test_i32_array_copy_alloc(void) {
b8 result;
Allocator allocator = wapp_mem_arena_allocator_init(MiB(4));
@@ -245,10 +245,10 @@ TestFuncResult test_i32_array_copy_alloc(void) {
wapp_mem_arena_allocator_destroy(&allocator);
return wapp_tester_result(result);
return wpTesterResult(result);
}
TestFuncResult test_i32_array_clear(void) {
WpTestFuncResult test_i32_array_clear(void) {
b8 result;
I32Array array = wapp_array(i32, 0, 1, 2, 3, 4, 5, 6, 7, 8);
@@ -258,10 +258,10 @@ TestFuncResult test_i32_array_clear(void) {
result = result && wapp_array_count(array) == 0;
return wapp_tester_result(result);
return wpTesterResult(result);
}
TestFuncResult test_i32_array_pop(void) {
WpTestFuncResult test_i32_array_pop(void) {
b8 result;
I32Array array1 = wapp_array(i32, 0, 1, 2, 3, 4, 5, 6, 7, 8);
@@ -272,5 +272,5 @@ TestFuncResult test_i32_array_pop(void) {
result = item1 == 8 && item2 == 0;
return wapp_tester_result(result);
return wpTesterResult(result);
}