Lines Matching refs:check_count_cap
286 auto check_count_cap = [&](int count, int cap) { in DEF_TEST() local
292 check_count_cap(0,0); in DEF_TEST()
293 s.add(1); check_count_cap(1,4); in DEF_TEST()
294 s.add(2); check_count_cap(2,4); in DEF_TEST()
295 s.add(3); check_count_cap(3,4); in DEF_TEST()
296 s.add(4); check_count_cap(4,8); in DEF_TEST()
298 s.remove(4); check_count_cap(3,8); in DEF_TEST()
299 s.remove(3); check_count_cap(2,4); in DEF_TEST()
300 s.remove(2); check_count_cap(1,4); in DEF_TEST()
301 s.remove(1); check_count_cap(0,4); in DEF_TEST()
303 s.add(1); check_count_cap(1,4); in DEF_TEST()
304 s.add(2); check_count_cap(2,4); in DEF_TEST()
305 s.add(3); check_count_cap(3,4); in DEF_TEST()
306 s.add(4); check_count_cap(4,8); in DEF_TEST()
311 s. add(5); check_count_cap(5,8); in DEF_TEST()
312 s.remove(5); check_count_cap(4,8); in DEF_TEST()
315 s.remove(4); check_count_cap(3,8); in DEF_TEST()
317 s. add(4); check_count_cap(4,8); in DEF_TEST()
318 s.remove(4); check_count_cap(3,8); in DEF_TEST()
321 s.remove(3); check_count_cap(2,4); in DEF_TEST()
323 s. add(4); check_count_cap(3,4); in DEF_TEST()
324 s.remove(4); check_count_cap(2,4); in DEF_TEST()
327 s.remove(2); check_count_cap(1,4); in DEF_TEST()
329 s. add(2); check_count_cap(2,4); in DEF_TEST()
330 s.remove(2); check_count_cap(1,4); in DEF_TEST()