Home | History | Annotate | Download | only in tests

Lines Matching full:str03

134     string str03(data + 2, data + 16);
135 EXPECT_TRUE(str03 == "16 char string");
162 string str03(i, 'x');
164 EXPECT_TRUE(str03[i] == '\0');
165 EXPECT_TRUE(str03.length() == i);
167 str03.reserve(i + 20);
168 EXPECT_TRUE(str03.capacity() == i + 20);
169 EXPECT_TRUE(str03.length() == i);
170 EXPECT_TRUE(str03[i] == '\0');
186 string str03(str01, 17, 0); // invalid index
187 EXPECT_TRUE(str03.c_str() == empty.c_str());
272 string str03;
276 EXPECT_TRUE(str03.c_str() == str04.c_str());
278 str03.reserve();
279 EXPECT_TRUE(0 == str03.capacity());
280 EXPECT_TRUE(str03.c_str() == str04.c_str());
282 str03.reserve(10);
283 EXPECT_TRUE(10 == str03.capacity());
285 EXPECT_TRUE(str03.c_str() != str04.c_str());
287 str03.reserve();
288 EXPECT_TRUE(0 == str03.capacity());
290 EXPECT_TRUE(str03.c_str() == str04.c_str());
292 str03.reserve(10);
293 str03.append("7 chars");
294 EXPECT_TRUE(str03 == "7 chars");
295 str03.reserve(); // shrink to fit.
296 EXPECT_TRUE(7 == str03.capacity());
492 string str03("bell");
507 EXPECT_TRUE(str01 != str03);
556 string str03("altima");
558 str03.swap(str04);
559 EXPECT_TRUE(str03 == "versa");
591 const string str03(str02);
592 EXPECT_TRUE(str03[i] == '\0');
643 string str03;
645 str03.assign(literal);
646 str03 == "Need to buy a full face helmet for Lilie.");
650 str04.assign(str03.c_str());
653 str04.assign(str03.c_str() + 5, 10);
690 string str03;
692 str03 = str01 + str02;
693 EXPECT_TRUE(str03 == "The full sentence.");
695 str03 = str02 + str01;
696 EXPECT_TRUE(str03 == " sentence.The full");
699 str03 = str01 + " sentence.";
700 EXPECT_TRUE(str03 == "The full sentence.");
702 str03 = "The full" + str02;
703 EXPECT_TRUE(str03 == "The full sentence.");
705 str03 = 'l' + str02;
706 str03 = 'l' + str03;
707 str03 = 'u' + str03;
708 str03 = 'f' + str03;
709 str03 = ' ' + str03;
710 str03 = 'e' + str03;
711 str03 = 'h' + str03;
712 str03 = 'T' + str03;
713 EXPECT_TRUE(str03 == "The full sentence.");
715 str03 = "The full ";
716 str03 = str03 + 's';
717 str03 = str03 + 'e';
718 str03 = str03 + 'n';
719 str03 = str03 + 't';
720 str03 = str03 + 'e';
721 str03 = str03 + 'n';
722 str03 = str03 + 'c';
723 str03 = str03 + 'e';
724 str03 = str03 + '.';
725 EXPECT_TRUE(str03 == "The full sentence.");
900 string str03("a");
902 str03.erase(0, kMaxSizeT);
903 EXPECT_TRUE(str03.capacity() == 1);
904 EXPECT_TRUE(str03.size() == 0);