Skip to content
Snippets Groups Projects
Commit 79105855 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

tests: added reserve test for array

parent dc35e304
Branches
Tags
No related merge requests found
......@@ -39,6 +39,9 @@ static void test_array(void **state)
assert_true(ret >= 0);
}
/* Make sure reservation holds. */
assert_true(array_reserve(arr, 5) >= 0);
/* Delete elements. */
array_del(arr, 0);
for (size_t i = arr.len; --i;) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment