Lines Matching refs:CPPUNIT_ASSERT
262 CPPUNIT_ASSERT(short_str1 == ref_short_str1);
263 CPPUNIT_ASSERT(long_str1 == ref_long_str1);
268 CPPUNIT_ASSERT(str1 == ref_long_str1);
274 CPPUNIT_ASSERT(str1 == ref_short_str1);
279 CPPUNIT_ASSERT((short_str1 == ref_short_str2) && (short_str2 == ref_short_str1));
285 CPPUNIT_ASSERT((long_str1 == ref_long_str2) && (long_str2 == ref_long_str1));
291 CPPUNIT_ASSERT((short_str1 == ref_long_str1) && (long_str1 == ref_short_str1));
297 CPPUNIT_ASSERT((short_str1 == ref_long_str1) && (long_str1 == ref_short_str1));
307 CPPUNIT_ASSERT( a.c_str() == bs );
308 CPPUNIT_ASSERT( b.c_str() == as );
318 CPPUNIT_ASSERT((str_vect[0] == ref_short_str1) &&
329 CPPUNIT_ASSERT( str == c_str );
337 CPPUNIT_ASSERT( str[i] == 'H' );
340 CPPUNIT_ASSERT( str[i] == '!' );
350 CPPUNIT_ASSERT( str == c_str );
352 CPPUNIT_ASSERT( str.empty() );
355 CPPUNIT_ASSERT( str == c_str );
361 CPPUNIT_ASSERT( str[i] == 'H' );
364 CPPUNIT_ASSERT( str[i] == '!' );
372 CPPUNIT_ASSERT( str == "H" );
379 CPPUNIT_ASSERT( xx.data() != 0 ); // ISO-IEC-14882:1998(E), 21.3.6, paragraph 3
416 CPPUNIT_ASSERT( *(yy.c_str()) == '\0' ); // ISO-IEC-14882:1998(E), 21.3.6, paragraph 1
422 CPPUNIT_ASSERT( strcmp( xx.c_str(), "1234562004-01-01" ) == 0 );
428 CPPUNIT_ASSERT( strcmp( xx.c_str(), "1234;" ) == 0 );
446 CPPUNIT_ASSERT( true );
468 CPPUNIT_ASSERT( str == "This is teis test string st string for string calls" );
472 CPPUNIT_ASSERT( str == "This is test stis test string for stringring for string calls" );
476 CPPUNIT_ASSERT( str == "allsThis is test string for string calls" );
480 CPPUNIT_ASSERT( str == "ng for string callsThis is test string for string calls" );
487 CPPUNIT_ASSERT( str == "ng for string callsThis is test string for string calls" );
491 CPPUNIT_ASSERT( str == "ng for string callsThis is test string for string calls" );
501 CPPUNIT_ASSERT( str0 == "00000" );
508 CPPUNIT_ASSERT( str1 == "11" );
511 CPPUNIT_ASSERT( str0 == "1100000" );
515 CPPUNIT_ASSERT( str0 == "110000034" );
518 CPPUNIT_ASSERT( str1 == "1221" );
521 CPPUNIT_ASSERT( str1 == "1233321" );
524 CPPUNIT_ASSERT( str1 == "12334444321" );
527 CPPUNIT_ASSERT( str1 == "123344544321" );
543 CPPUNIT_ASSERT( s == "17856" );
548 CPPUNIT_ASSERT( s == "1783456" );
554 CPPUNIT_ASSERT( s == "15656" );
560 CPPUNIT_ASSERT( s == "12356" );
566 CPPUNIT_ASSERT( s == "1345656" );
576 CPPUNIT_ASSERT( s == "1234123456" );
587 CPPUNIT_ASSERT( s == "1234123456" );
591 CPPUNIT_ASSERT( s == "1234123456" );
596 CPPUNIT_ASSERT( str == "This This is tefor string calls" );
600 CPPUNIT_ASSERT( str == "This This is test string for string calls" );
606 CPPUNIT_ASSERT( str == "Is test string for string calls" );
616 CPPUNIT_ASSERT( *s.c_str() == 0 );
621 CPPUNIT_ASSERT( *s.c_str() == 0 );
625 CPPUNIT_ASSERT( s.size() == 1 );
626 CPPUNIT_ASSERT( *s.c_str() == '1' );
627 CPPUNIT_ASSERT( *(s.c_str() + 1) == 0 );
631 CPPUNIT_ASSERT( s.size() == 10 );
632 CPPUNIT_ASSERT( s[6] == '7' );
633 CPPUNIT_ASSERT( s[7] == 0 );
634 CPPUNIT_ASSERT( s[8] == 0 );
635 CPPUNIT_ASSERT( s[9] == 0 );
641 CPPUNIT_ASSERT( s.find("one") == 0 );
642 CPPUNIT_ASSERT( s.find('t') == 4 );
643 CPPUNIT_ASSERT( s.find('t', 5) == 8 );
652 CPPUNIT_ASSERT( s.find("four") == npos_local );
653 CPPUNIT_ASSERT
655 CPPUNIT_ASSERT( s.find_first_of("abcde") == 2 );
657 CPPUNIT_ASSERT( s.find_first_not_of("enotw ") == 9 );
660 CPPUNIT_ASSERT( s.substr(s.find(empty), empty.size()) == empty );
765 CPPUNIT_ASSERT( s.rfind("two") == 18 );
766 CPPUNIT_ASSERT( s.rfind("two", 0) == string::npos );
767 CPPUNIT_ASSERT( s.rfind("two", 11) == 4 );
768 CPPUNIT_ASSERT( s.rfind('w') == 19 );
786 CPPUNIT_ASSERT( s.find_last_of("abcde") == 26 );
804 CPPUNIT_ASSERT( s.find_last_not_of("ehortw ") == 15 );
830 CPPUNIT_ASSERT( dest[pos++] == 'f' );
831 CPPUNIT_ASSERT( dest[pos++] == 'o' );
832 CPPUNIT_ASSERT( dest[pos++] == 'o' );
833 CPPUNIT_ASSERT( dest[pos++] == 1 );
838 CPPUNIT_ASSERT( dest[pos++] == 'o' );
839 CPPUNIT_ASSERT( dest[pos++] == 1 );
860 CPPUNIT_ASSERT( s == "test string for assign" );
864 CPPUNIT_ASSERT( s == s2 );
874 CPPUNIT_ASSERT(str1[5] == '6');
875 CPPUNIT_ASSERT(str2[29] == '0');
895 CPPUNIT_ASSERT(true == short_string_optim_bug_helper(teststr));
910 CPPUNIT_ASSERT( str1.compare(str2) == 0 );
912 CPPUNIT_ASSERT( str1.compare(str2) > 0 );
914 CPPUNIT_ASSERT( str1.compare(str2) < 0 );
916 CPPUNIT_ASSERT( str1.compare("abcdef") == 0 );
917 CPPUNIT_ASSERT( str1.compare("abcde") > 0 );
918 CPPUNIT_ASSERT( str1.compare("abcdefg") < 0 );
921 CPPUNIT_ASSERT( str1.compare(2, 3, str2) == 0 );
923 CPPUNIT_ASSERT( str1.compare(2, 3, str2) > 0 );
925 CPPUNIT_ASSERT( str1.compare(2, 3, str2) < 0 );
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 );
932 CPPUNIT_ASSERT( str1.compare(2, 3, "cdefgh", 3) == 0 );
933 CPPUNIT_ASSERT( str1.compare(2, 3, "cdefgh", 2) > 0 );
934 CPPUNIT_ASSERT( str1.compare(2, 3, "cdefgh", 4) < 0 );
1040 CPPUNIT_ASSERT( result == "one twoth" );
1077 CPPUNIT_ASSERT( result == ' ' );
1224 CPPUNIT_ASSERT( result == L"one twoth" );
1261 CPPUNIT_ASSERT( result == L' ' );
1279 CPPUNIT_ASSERT( ostr.good() );
1280 CPPUNIT_ASSERT( ostr.str() == str );
1286 CPPUNIT_ASSERT( !istr.fail() && istr.eof() );
1287 CPPUNIT_ASSERT( istr_content == str );
1294 CPPUNIT_ASSERT( !istr.fail() && !istr.eof() );
1295 CPPUNIT_ASSERT( istr_content == "STL" );
1320 CPPUNIT_ASSERT( str1.get_allocator().swaped() );
1321 CPPUNIT_ASSERT( str2.get_allocator().swaped() );
1323 CPPUNIT_ASSERT( str1 == str2Cpy );
1324 CPPUNIT_ASSERT( str2 == str1Cpy );
1325 CPPUNIT_ASSERT( str1.get_allocator() == stack2 );
1326 CPPUNIT_ASSERT( str2.get_allocator() == stack1 );
1328 CPPUNIT_ASSERT( stack1.ok() );
1329 CPPUNIT_ASSERT( stack2.ok() );
1341 CPPUNIT_ASSERT( str1.get_allocator().swaped() );
1342 CPPUNIT_ASSERT( str2.get_allocator().swaped() );
1344 CPPUNIT_ASSERT( str1 == str2Cpy );
1345 CPPUNIT_ASSERT( str2 == str1Cpy );
1346 CPPUNIT_ASSERT( str1.get_allocator() == stack2 );
1347 CPPUNIT_ASSERT( str2.get_allocator() == stack1 );
1349 CPPUNIT_ASSERT( stack1.ok() );
1350 CPPUNIT_ASSERT( stack2.ok() );
1363 CPPUNIT_ASSERT( str1.get_allocator().swaped() );
1364 CPPUNIT_ASSERT( str2.get_allocator().swaped() );
1366 CPPUNIT_ASSERT( str1 == str2Cpy );
1367 CPPUNIT_ASSERT( str2 == str1Cpy );
1368 CPPUNIT_ASSERT( str1.get_allocator() == stack2 );
1369 CPPUNIT_ASSERT( str2.get_allocator() == stack1 );
1371 CPPUNIT_ASSERT( stack1.ok() );
1372 CPPUNIT_ASSERT( stack2.ok() );
1385 CPPUNIT_ASSERT( str1.get_allocator().swaped() );
1386 CPPUNIT_ASSERT( str2.get_allocator().swaped() );
1388 CPPUNIT_ASSERT( str1 == str2Cpy );
1389 CPPUNIT_ASSERT( str2 == str1Cpy );
1390 CPPUNIT_ASSERT( str1.get_allocator() == stack2 );
1391 CPPUNIT_ASSERT( str2.get_allocator() == stack1 );
1393 CPPUNIT_ASSERT( stack1.ok() );
1394 CPPUNIT_ASSERT( stack2.ok() );