Commit 9ce59569 authored by Chris Müller's avatar Chris Müller

test: add clear test for pointer arrays.

parent 25e8370c
......@@ -87,6 +87,11 @@ test_ptr_array_operations(const_pointer data)
assert(cry_ptr_array_trim(array) == cry_ptr_array_size(array));
cry_ptr_array_clear(array, 0);
assert(cry_ptr_array_size(array) == 0);
assert(cry_ptr_array_get(array, 0) == 0);
cry_ptr_array_free(array);
}
......
Markdown is supported
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