From 9fdec557eb9494a47faa8aa3fe496d38f8cace07 Mon Sep 17 00:00:00 2001 From: Rot127 Date: Mon, 19 Feb 2024 04:48:35 -0500 Subject: [PATCH] Fix set_u unit test. --- test/unit/test_util.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/unit/test_util.c b/test/unit/test_util.c index e70335383a2..059634b31d6 100644 --- a/test/unit/test_util.c +++ b/test/unit/test_util.c @@ -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); @@ -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.");