Add method _count_if
This commit is contained in:
1 parent
b2f005239b
commit
fcdfd836ec
2 files changed
+17
No files matched your search
@@ -168,6 +168,9 @@ static void test_array(void)
|
||||
assert( algo_array_count(l, -1) == 0);
|
||||
assert( algo_array_sort_p(l) == false);
|
||||
|
||||
assert( algo_array_count_if(l, func_test_42) == 1);
|
||||
assert( algo_array_count_if(l, func_test_101) == 0);
|
||||
|
||||
array_int_it_t it;
|
||||
algo_array_find_last(it, l, 17);
|
||||
assert (!array_int_end_p (it));
|
||||
|
||||
Reference in new issue
Block a user