Add test.

This commit is contained in:
Patrick Pelissier committed 2018-07-15 22:26:59 +02:00
1 parent 42b37a718f
commit 5025b3690d
1 file changed
+3
+3
View File
@@ -115,6 +115,9 @@ static void test_list(void)
#define g(y, x) assert((x) >= 0 && (x) < y);
ALGO_MAP(l, LIST_OPLIST(list_int), g, 100);
assert( algo_list_count_if(l, func_test_42) == 1);
assert( algo_list_count_if(l, func_test_101) == 0);
int *p = algo_list_min(l);
assert(p != NULL && *p == 0);
p = algo_list_max(l);