Home | History | Annotate | Download | only in tests

Lines Matching full:str02

131     string str02(data, data + 1);
132 EXPECT_TRUE(str02 == "a");
154 string str02(10, 'c');
156 EXPECT_TRUE(!str02.empty());
157 EXPECT_TRUE(str02.size() == 10);
158 EXPECT_TRUE(str02.capacity() == 10);
183 string str02(str01, 17, 1); // invalid index
184 EXPECT_TRUE(str02.c_str() == empty.c_str());
224 string str02;
227 EXPECT_TRUE(str01.c_str() == str02.c_str());
240 EXPECT_TRUE(str01.c_str() == str02.c_str());
258 string str02("7 chars");
259 EXPECT_TRUE(7 == str02.capacity());
260 EXPECT_TRUE(7 == str02.size());
262 str02.reserve(10);
263 EXPECT_TRUE(str02 == "7 chars");
264 EXPECT_TRUE(10 == str02.capacity());
265 EXPECT_TRUE(7 == str02.size());
267 str02.reserve(6); // no effect
268 EXPECT_TRUE(str02 == "7 chars");
269 EXPECT_TRUE(10 == str02.capacity());
270 EXPECT_TRUE(7 == str02.size());
491 string str02("bell moto");
506 EXPECT_TRUE(str01 != str02);
550 string str02("test");
552 str01.swap(str02);
553 EXPECT_TRUE(str02.empty());
585 string str02(i, 'x');
587 str02.reserve(20);
589 EXPECT_TRUE(str02[i] == '\0');
591 const string str03(str02);
621 string str02;
623 str02.assign(str01, 8, 33);
624 EXPECT_TRUE(str02 == "buy a full face helmet for Lilie.");
626 str02.assign(str01, 8, 0);
627 EXPECT_TRUE(str02 == "");
629 str02.assign(str01, 0, 7);
630 EXPECT_TRUE(str02 == "Need to");
632 str02.assign("unchanged");
633 str02.assign(str01, 35, 1000);
634 EXPECT_TRUE(str02 == "unchanged");
636 str02.assign(str01, 35, 6);
637 EXPECT_TRUE(str02 == "Lilie.");
640 str02.assign(str01, 35, 5);
641 EXPECT_TRUE(str02 == "Lilie");
689 string str02(" sentence.");
692 str03 = str01 + str02;
695 str03 = str02 + str01;
702 str03 = "The full" + str02;
705 str03 = 'l' + str02;
892 string str02("a");
894 str02.erase(kMaxSizeT);
895 EXPECT_TRUE(str02.capacity() == 1);
896 EXPECT_TRUE(str02.size() == 1);