Home | History | Annotate | Download | only in tests

Lines Matching defs:vec3

61         vector<int> vec3(200, 0xaa);
62 EXPECT_TRUE(!vec3.empty());
63 EXPECT_TRUE(vec3.size() == 200);
64 EXPECT_TRUE(vec3.capacity() == 200);
67 EXPECT_TRUE(vec3[i] == 0xaa);
122 const vector<TestEnum> vec3(100, ONE);
126 EXPECT_TRUE(vec3[i] == ONE);
208 vector<int> vec3;
210 vec3.push_back(5);
211 vec3.reserve();
212 EXPECT_TRUE(vec3.capacity() == 1);
213 vec3.push_back(3);
214 EXPECT_TRUE(vec3.capacity() == kExponentialFactor);
215 while (vec3.size() < kExponentialFactor)
216 vec3.push_back(3);
218 EXPECT_TRUE(vec3.size() == kExponentialFactor);
219 EXPECT_TRUE(vec3.capacity() == kExponentialFactor);
222 vec3.push_back(10);
223 EXPECT_TRUE(vec3.capacity() == kExponentialFactor * kExponentialFactor);
282 vector<string> vec3;
284 vec3.push_back(str);
285 EXPECT_TRUE(vec3.size() == 1);
286 EXPECT_TRUE(vec3.front() == "a string");
287 EXPECT_TRUE(vec3.back() == "a string");