Lines Matching refs:reserveCount
198 Array* array, int reserveCount) { in test_array_reserve() argument
200 REPORTER_ASSERT(reporter, array->allocCntForTest() >= reserveCount); in test_array_reserve()
202 REPORTER_ASSERT(reporter, array->allocCntForTest() >= reserveCount); in test_array_reserve()
204 REPORTER_ASSERT(reporter, array->allocCntForTest() >= reserveCount); in test_array_reserve()
205 while (array->count() < reserveCount) { in test_array_reserve()
212 REPORTER_ASSERT(reporter, array->allocCntForTest() >= reserveCount); in test_array_reserve()
219 for (int reserveCount : {1, 2, 10, 100}) { in test_reserve()
221 Array array1(reserveCount); in test_reserve()
222 test_array_reserve(reporter, &array1, reserveCount); in test_reserve()
226 array2.reserve(reserveCount); in test_reserve()
227 test_array_reserve(reporter, &array2, reserveCount); in test_reserve()
230 Array array3(reserveCount/2); in test_reserve()
231 array3.reserve(reserveCount); in test_reserve()
232 test_array_reserve(reporter, &array3, reserveCount); in test_reserve()
236 array4.push_back_n(reserveCount); in test_reserve()
237 array4.reserve(reserveCount); in test_reserve()
238 array4.pop_back_n(reserveCount); in test_reserve()
239 test_array_reserve(reporter, &array4, 2 * reserveCount); in test_reserve()