Home | History | Annotate | Download | only in tests

Lines Matching full:vec1

45         vector<int> vec1;
46 EXPECT_TRUE(vec1.empty());
47 EXPECT_TRUE(vec1.size() == 0);
48 EXPECT_TRUE(vec1.capacity() == 0);
76 vector<string> vec1;
77 EXPECT_TRUE(vec1.empty());
78 EXPECT_TRUE(vec1.size() == 0);
79 EXPECT_TRUE(vec1.capacity() == 0);
89 vector<B> vec1;
90 EXPECT_TRUE(vec1.empty());
91 EXPECT_TRUE(vec1.size() == 0);
92 EXPECT_TRUE(vec1.capacity() == 0);
95 vector<B> vec1(100);
96 EXPECT_TRUE(!vec1.empty());
97 EXPECT_TRUE(vec1.size() == 100);
98 EXPECT_TRUE(vec1.capacity() == 100);
106 const vector<int> vec1(100, 10);
110 EXPECT_TRUE(vec1[i] == 10);
181 vector<int> vec1(100, 10);
183 EXPECT_TRUE(vec1.capacity() == 100);
184 EXPECT_TRUE(vec1.reserve(200));
185 EXPECT_TRUE(vec1.capacity() == 200);
186 EXPECT_TRUE(vec1.size() == 100);
188 EXPECT_TRUE(vec1.reserve());
189 EXPECT_TRUE(vec1.capacity() == 100);
190 EXPECT_TRUE(vec1.size() == 100);
250 vector<CtorDtorCounter> vec1;
256 vec1.push_back(c);
258 EXPECT_TRUE(vec1.capacity() == 1024);
259 EXPECT_TRUE(vec1.size() == 1000);
295 vector<int> vec1(10, 0xdeadbeef);;
297 EXPECT_TRUE(vec1.capacity() == 10);
298 EXPECT_TRUE(vec1.size() == 10);
302 EXPECT_TRUE(vec1.capacity() == 10);
303 EXPECT_TRUE(vec1.size() == i);
304 vec1.pop_back();
306 EXPECT_TRUE(vec1.empty());
307 EXPECT_TRUE(vec1.begin() == vec1.end());
308 vec1.pop_back(); // pop_back on empty vector
309 EXPECT_TRUE(vec1.size() == 0);
310 EXPECT_TRUE(vec1.capacity() == 10);
312 vec1.clear();
313 vec1.pop_back(); // pop_back on empty vector
314 EXPECT_TRUE(vec1.size() == 0);
315 EXPECT_TRUE(vec1.capacity() == 0);
316 EXPECT_TRUE(vec1.begin() == vec1.end());
317 EXPECT_TRUE(vec1.begin().base() == NULL);
336 vector<int> vec1(10, 0xdeadbeef);
337 vec1.resize(0);
338 EXPECT_TRUE(vec1.capacity() == 10);
339 vec1.resize(5);
340 EXPECT_TRUE(vec1.capacity() == 10);
341 vec1.resize(10);
342 EXPECT_TRUE(vec1.capacity() == 10);
343 vec1.resize(11);
344 EXPECT_TRUE(vec1.capacity() == 11);
345 vec1.resize(100);
346 EXPECT_TRUE(vec1.capacity() == 100);
347 vec1.resize(10);
348 EXPECT_TRUE(vec1.capacity() == 100);
351 vector<B> vec1(10);
352 vec1.resize(0);
353 EXPECT_TRUE(vec1.capacity() == 10);
354 vec1.resize(5);
355 EXPECT_TRUE(vec1.capacity() == 10);
356 vec1.resize(10);
357 EXPECT_TRUE(vec1.capacity() == 10);
358 vec1.resize(11);
359 EXPECT_TRUE(vec1.capacity() == 11);
360 vec1.resize(100);
361 EXPECT_TRUE(vec1.capacity() == 100);
362 vec1.resize(10);
363 EXPECT_TRUE(vec1.capacity() == 100);
396 vector<int> vec1(100, 10);
399 vec1.swap(vec2);
401 EXPECT_TRUE(vec1.capacity() == 0);
404 EXPECT_TRUE(vec1.size() == 0);
407 EXPECT_TRUE(vec1.begin() == vec1.end());
415 vector<int> vec1(10);
419 vec1[i] = i;
422 vector<int>::iterator i = vec1.begin();
423 for (int c = 0; i != vec1.end(); ++i, ++c)
428 vector<int>::const_iterator j = vec1.begin();
429 for (int c = 0; j != vec1.end(); ++j, ++c)
435 const vector<int> vec1(100, 10);
437 EXPECT_TRUE(vec1.end().operator-(100) == vec1.begin());
438 EXPECT_TRUE(vec1.end() - 100 == vec1.begin());
440 EXPECT_TRUE(100 + vec1.begin() == vec1.end());
441 EXPECT_TRUE(vec1.begin() + 100 == vec1.end());
443 EXPECT_TRUE(vec1.end() - vec1.begin() == 100);
444 EXPECT_TRUE(std::distance(vec1.begin(), vec1.end()) == 100);
445 EXPECT_TRUE(std::distance(vec1.end(), vec1.begin()) == -100);
447 for (vector<int>::const_iterator i = vec1.begin();
448 i != vec1.end(); ++i) {
464 vector<CtorDtorCounter> vec1;