Skip to content

Commit

Permalink
More test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
srdja committed Jan 28, 2024
1 parent efc5443 commit f278e2b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/list_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -1089,10 +1089,14 @@ static MunitResult test_reduce2(const MunitParameter params[], void* fixture)
*c = true;
*d = true;

bool res;
cc_list_add(list, a);
cc_list_add(list, b);
cc_list_add(list, c);
cc_list_add(list, d);

cc_list_reduce(list, bool_and, &res);
bool res = false;

cc_list_reduce(list, bool_and, &res);
munit_assert_true(res);

cc_list_destroy(list);
Expand Down

0 comments on commit f278e2b

Please sign in to comment.