Home | History | Annotate | Download | only in unit

Lines Matching refs:str2

256   string const ref_short_str1("str1"), ref_short_str2("str2");
513 string str2("2345");
514 str0.insert(str0.size(), str2, 1, 2);
867 static string str2;
872 str2 = "1234567890123456789012345678901234567890";
875 CPPUNIT_ASSERT(str2[29] == '0');
907 string str2;
909 str2 = "abcdef";
910 CPPUNIT_ASSERT( str1.compare(str2) == 0 );
911 str2 = "abcde";
912 CPPUNIT_ASSERT( str1.compare(str2) > 0 );
913 str2 = "abcdefg";
914 CPPUNIT_ASSERT( str1.compare(str2) < 0 );
920 str2 = "cde";
921 CPPUNIT_ASSERT( str1.compare(2, 3, str2) == 0 );
922 str2 = "cd";
923 CPPUNIT_ASSERT( str1.compare(2, 3, str2) > 0 );
924 str2 = "cdef";
925 CPPUNIT_ASSERT( str1.compare(2, 3, str2) < 0 );
927 str2 = "abcdef";
928 CPPUNIT_ASSERT( str1.compare(2, 3, str2, 2, 3) == 0 );
929 CPPUNIT_ASSERT( str1.compare(2, 3, str2, 2, 2) > 0 );
930 CPPUNIT_ASSERT( str1.compare(2, 3, str2, 2, 4) < 0 );
1315 StackString str2("string stack2", stack2);
1316 StackString str2Cpy(str2);
1318 str1.swap(str2);
1321 CPPUNIT_ASSERT( str2.get_allocator().swaped() );
1324 CPPUNIT_ASSERT( str2 == str1Cpy );
1326 CPPUNIT_ASSERT( str2.get_allocator() == stack1 );
1336 StackString str2("longer string from stack2 allocator instance for dynamic allocation", stack2);
1337 StackString str2Cpy(str2);
1339 str1.swap(str2);
1342 CPPUNIT_ASSERT( str2.get_allocator().swaped() );
1345 CPPUNIT_ASSERT( str2 == str1Cpy );
1347 CPPUNIT_ASSERT( str2.get_allocator() == stack1 );
1358 StackString str2("longer string from stack2 allocator instance for dynamic allocation", stack2);
1359 StackString str2Cpy(str2);
1361 str1.swap(str2);
1364 CPPUNIT_ASSERT( str2.get_allocator().swaped() );
1367 CPPUNIT_ASSERT( str2 == str1Cpy );
1369 CPPUNIT_ASSERT( str2.get_allocator() == stack1 );
1380 StackString str2("string stack2", stack2);
1381 StackString str2Cpy(str2);
1383 str1.swap(str2);
1386 CPPUNIT_ASSERT( str2.get_allocator().swaped() );
1389 CPPUNIT_ASSERT( str2 == str1Cpy );
1391 CPPUNIT_ASSERT( str2.get_allocator() == stack1 );