From 56edd66ae3e8661d40d499bd7c72f3ffc7aac4e7 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 22 Mar 2025 16:04:58 +0200 Subject: fix map iteration --- tests/map.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/map.c') diff --git a/tests/map.c b/tests/map.c index 08f831e..6c42787 100644 --- a/tests/map.c +++ b/tests/map.c @@ -23,10 +23,14 @@ int main() assert(v && *v == i); } + size_t count = 0; foreach(ints, iter, &ints) { assert(iter->key == iter->data); + count++; } + assert(count == 1000000); + for (int i = 0; i < 1000000; ++i) { ints_remove(&ints, i); } -- cgit v1.2.3