Rename array

This commit is contained in:
2026-06-26 16:53:49 +01:00
parent c4134c4017
commit c0d83b5c3f
10 changed files with 380 additions and 380 deletions
+4 -4
View File
@@ -10,16 +10,16 @@ WpTestFuncResult test_str8_array(void) {
WpStr8 str1 = wpStr8Lit("Hello");
WpStr8 str2 = wpStr8Lit("Hi");
WpStr8 str3 = wpStr8Lit("Bye");
WpStr8Array array = wapp_array(WpStr8, str1, str2, str3);
WpStr8Array array = wpArray(WpStr8, str1, str2, str3);
result = wapp_array_count(array) == 3 && wapp_array_capacity(array) == 8;
result = wpArrayCount(array) == 3 && wpArrayCapacity(array) == 8;
WpStr8 *item;
u64 count = wapp_array_count(array);
u64 count = wpArrayCount(array);
u64 index = 0;
b8 running = true;
while (running) {
item = wapp_array_get(WpStr8, array, index);
item = wpArrayGet(WpStr8, array, index);
result = result && item && (wpStr8Equal(item, &expected[index]));
++index;