Lines Matching defs:check_count_cap
287 auto check_count_cap = [&](int count, int cap) {
293 check_count_cap(0,0);
294 s.add(1); check_count_cap(1,4);
295 s.add(2); check_count_cap(2,4);
296 s.add(3); check_count_cap(3,4);
297 s.add(4); check_count_cap(4,8);
299 s.remove(4); check_count_cap(3,8);
300 s.remove(3); check_count_cap(2,4);
301 s.remove(2); check_count_cap(1,4);
302 s.remove(1); check_count_cap(0,4);
304 s.add(1); check_count_cap(1,4);
305 s.add(2); check_count_cap(2,4);
306 s.add(3); check_count_cap(3,4);
307 s.add(4); check_count_cap(4,8);
312 s. add(5); check_count_cap(5,8);
313 s.remove(5); check_count_cap(4,8);
316 s.remove(4); check_count_cap(3,8);
318 s. add(4); check_count_cap(4,8);
319 s.remove(4); check_count_cap(3,8);
322 s.remove(3); check_count_cap(2,4);
324 s. add(4); check_count_cap(3,4);
325 s.remove(4); check_count_cap(2,4);
328 s.remove(2); check_count_cap(1,4);
330 s. add(2); check_count_cap(2,4);
331 s.remove(2); check_count_cap(1,4);