@@ -261,6 +261,19 @@ WpTestFuncResult test_i32_array_clear(void) {
|
||||
return wpTesterResult(result);
|
||||
}
|
||||
|
||||
WpTestFuncResult test_i32_array_remove_swap_end(void) {
|
||||
b8 result;
|
||||
|
||||
WpI32Array array = wpArray(i32, 0, 1, 2, 3, 4, 5, 6, 7, 8);
|
||||
result = wpArrayCount(array) == 9 && array[4] == 4;
|
||||
|
||||
wpArrayRemoveSwapEnd(i32, array, 4);
|
||||
|
||||
result = result && wpArrayCount(array) == 8 && array[4] == 8;
|
||||
|
||||
return wpTesterResult(result);
|
||||
}
|
||||
|
||||
WpTestFuncResult test_i32_array_pop(void) {
|
||||
b8 result;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user