Lines Matching refs:reserveCount
300 Array* array, int reserveCount) { in test_array_reserve() argument
302 REPORTER_ASSERT(reporter, array->capacity() >= reserveCount); in test_array_reserve()
304 REPORTER_ASSERT(reporter, array->capacity() >= reserveCount); in test_array_reserve()
306 REPORTER_ASSERT(reporter, array->capacity() >= reserveCount); in test_array_reserve()
307 while (array->count() < reserveCount) { in test_array_reserve()
314 REPORTER_ASSERT(reporter, array->capacity() >= reserveCount); in test_array_reserve()
321 for (int reserveCount : {1, 2, 10, 100}) { in test_reserve()
323 Array array1(reserveCount); in test_reserve()
324 test_array_reserve(reporter, &array1, reserveCount); in test_reserve()
328 array2.reserve_back(reserveCount); in test_reserve()
329 test_array_reserve(reporter, &array2, reserveCount); in test_reserve()
332 Array array3(reserveCount/2); in test_reserve()
333 array3.reserve_back(reserveCount); in test_reserve()
334 test_array_reserve(reporter, &array3, reserveCount); in test_reserve()
338 array4.push_back_n(reserveCount); in test_reserve()
339 array4.reserve_back(reserveCount); in test_reserve()
340 array4.pop_back_n(reserveCount); in test_reserve()
341 test_array_reserve(reporter, &array4, 2 * reserveCount); in test_reserve()