Skip to content

Commit

Permalink
Fix set_u unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Feb 19, 2024
1 parent 7cc4806 commit 9fdec55
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/unit/test_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ bool test_set_u(void) {
set_u_iter_reset(it);
set_u_foreach(set_u, it) {
x++;
printf("%llu\n", it.v);
}
mu_assert_eq(x, 2, "Foreach hasn't iterated the correct number of times.");
set_u_delete(set_u, 0x53e0);
Expand All @@ -147,10 +146,8 @@ bool test_set_u(void) {

x = 0;
set_u_iter_reset(it);
if (set_u)
for (advance_set_u_iter(set_u, &it); it.ti <= set_u->size && set_u_size(set_u) > 0; advance_set_u_iter(set_u, &it)) {
set_u_foreach(set_u, it) {
x++;
printf("%llu\n", it.v);
}
mu_assert_eq(x, 5, "Foreach hasn't iterated the correct number of times.");

Expand Down

0 comments on commit 9fdec55

Please sign in to comment.