summaryrefslogtreecommitdiff
path: root/tests/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/map.c')
-rw-r--r--tests/map.c4
1 files changed, 4 insertions, 0 deletions
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);
}