Lines Matching full:test3
118 UnicodeString test3;
119 test3.append((UChar32)0x20402);
120 if(test3 != CharsToUnicodeString("\\uD841\\uDC02")){
121 errln((UnicodeString)"append failed for UChar32, expected \"\\\\ud841\\\\udc02\", got " + prettify(test3));
123 if(test3.length() != 2){
124 errln("append or length failed for UChar32, expected 2, got " + test3.length());
126 test3.append((UChar32)0x0074);
127 if(test3 != CharsToUnicodeString("\\uD841\\uDC02t")){
128 errln((UnicodeString)"append failed for UChar32, expected \"\\\\uD841\\\\uDC02t\", got " + prettify(test3));
130 if(test3.length() != 3){
131 errln((UnicodeString)"append or length failed for UChar32, expected 2, got " + test3.length());
135 if( test3.setTo((UChar32)0x10330).length() != 2 ||
136 test3.insert(0, (UChar32)0x20100).length() != 4 ||
137 test3.replace(2, 2, (UChar32)0xe0061).length() != 4 ||
138 (test3 = (UChar32)0x14001).length() != 2
266 UnicodeString test3("this is a test of the emergency broadcast system");
277 if (test1 != test2 || test1 == test3 || test1 == test4)
281 if (test1 > test2 || test1 < test2 || !(test1 < test3) || !(test1 > test4) ||
288 if (!(test1 >= test2) || !(test1 <= test2) || !(test1 <= test3) || !(test1 >= test4))
292 if (test1.compare(test2) != 0 || test1.compare(test3) >= 0 || test1.compare(test4) <= 0)
297 test3.compare(0, 14, test2) != 0 ||
299 test3.compare(0, 18, test1) <=0 )
303 if (test2.compare(uniChars) != 0 || test3.compare(uniChars) <= 0 || test4.compare(uniChars) >= 0)
307 if (test2.compare(chars) != 0 || test3.compare(chars) <= 0 || test4.compare(chars) >= 0)
316 || test1.compare(0, 14, test3, 0, 14) != 0
321 || test1.compare(10, 4, test3, 22, 9) <= 0
326 if (test1.compareBetween(0, 14, test2, 0, 14) != 0 || test1.compareBetween(0, 14, test3, 0, 14) != 0
330 if (test1.compareBetween(10, 14, test2, 0, 4) >= 0 || test1.compareBetween(10, 14, test3, 22, 31) <= 0
466 UChar test3[13] = {1, 2, 3, 4, 5, 6, 7, 8, 8, 10, 11, 12, 13};
472 test1.extract(11, 12, test3);
506 if (test1.charAt((int32_t)(11 + i)) != test3[i]) {
654 UChar test3[] = { 0x53, 0x50, 0x41, 0x4d, 0x4d, 0 };
659 test1.replace(12, 5, test3, 4);
660 test3[4] = 0;
661 test1.replace(17, 4, test3);
712 UnicodeString test3(testData);
741 startPos != -1 && startPos < test3.length();
742 (startPos = test3.indexOf(test4, startPos)) != -1 ? (++occurrences, startPos += 2) : 0)
748 startPos != -1 && startPos < test3.length();
749 (startPos = test3.indexOf(test4, startPos)) != -1 ? (++occurrences, startPos += 2) : 0)
778 for( occurrences =0, startPos=0; startPos < test3.length(); startPos +=1){
779 subString.append(test3, startPos, test3.length());
789 startPos != -1 && startPos < test3.length();
790 (startPos = test3.indexOf(testChar32, startPos)) != -1 ? (++occurrences, startPos += 1) : 0)
795 endPos=test3.length();
797 startPos != -1 && startPos < test3.length();
798 (startPos = test3.indexOf(testChar32, startPos, endPos - startPos)) != -1 ? (++occurrences, startPos += 1) : 0)
827 startPos=test3.length();
830 (startPos = test3.lastIndexOf(testChar32, 5, startPos - 5)) != -1 ? ++occurrences : 0)
836 for ( occurrences = 0, endPos = test3.length(); endPos > 0; endPos -= 1){
838 subString.append(test3, 0, endPos);
851 if(test3.indexOf((UChar32)0xd841) != 4 || test3.indexOf((UChar32)0xdc02) != 3) {
854 if( UnicodeString(test3, 0, 17).lastIndexOf((UChar)0xd841, 0) != 4 ||
855 UnicodeString(test3, 0, 17).lastIndexOf((UChar32)0xd841, 2) != 4 ||
856 test3.lastIndexOf((UChar32)0xd841, 0, 17) != 4 || test3.lastIndexOf((UChar32)0xdc02, 0, 17) != 16
867 UnicodeString test3("Hi! How ya doin'? Beautiful day, isn't it?");
882 expectedValue = test3;
883 returnVal = test3.padTrailing(15);
884 if (returnVal == TRUE || test3 != expectedValue)
885 errln("padTrailing() failed: expected \"" + expectedValue + "\", got \"" + test3 + "\".");
902 test3.trim();
904 if (test3 != expectedValue)
905 errln("trim() failed: expected \"" + expectedValue + "\", got \"" + test3 + "\".");
917 returnVal = test3.truncate(15);
919 if (returnVal == FALSE || test3 != expectedValue)
920 errln("truncate() failed: expected \"" + expectedValue + "\", got \"" + test3 + "\".");
928 UnicodeString test3("country.");
935 if (test1.startsWith(test3) ||
936 test1.startsWith(test3.getBuffer(), test3.length()) ||
937 test1.startsWith(test3.getTerminatedBuffer(), 0, -1)
939 errln("startsWith() failed: \"" + test3 + "\" shouldn't be a prefix of \"" + test1 + "\".");
946 if (!test1.endsWith(test3)) {
947 errln("endsWith(test3) failed: \"" + test3 + "\" should be a suffix of \"" + test1 + "\".");
949 if (!test1.endsWith(test3, 0, INT32_MAX)) {
950 errln("endsWith(test3, 0, INT32_MAX) failed: \"" + test3 + "\" should be a suffix of \"" + test1 + "\".");
953 if(!test1.endsWith(test3.getBuffer(), test3.length())) {
954 errln("endsWith(test3.getBuffer(), test3.length()) failed: \"" + test3 + "\" should be a suffix of \"" + test1 + "\".");
956 if(!test1.endsWith(test3.getTerminatedBuffer(), 0, -1)) {
957 errln("endsWith(test3.getTerminatedBuffer(), 0, -1) failed: \"" + test3 + "\" should be a suffix of \"" + test1 + "\".");
960 if (!test3.startsWith(test4)) {
961 errln("endsWith(test4) failed: \"" + test4 + "\" should be a prefix of \"" + test3 + "\".");
964 if (test4.startsWith(test3)) {
965 errln("startsWith(test3) failed: \"" + test3 + "\" shouldn't be a prefix of \"" + test4 + "\".");
974 UnicodeString test3("MISSISSIPPI");
978 test1.findAndReplace(test2, test3);
982 test1.findAndReplace(2, 32, test3, test2);
1016 UnicodeString test3("Me too!");
1393 UnicodeString test3("Me too!");
1396 if (test1.isBogus() || test2.isBogus() || test3.isBogus()) {
1402 test3.setTo(FALSE, test1.getBuffer(), -2);
1403 if(!test3.isBogus()) {
1406 if (test1.hashCode() != test2.hashCode() || test1.hashCode() == test3.hashCode()) {
1409 if(test3.getBuffer()!=0 || test3.getBuffer(20)!=0 || test3.getTerminatedBuffer()!=0) {
1412 if (test1.indexOf(test3) != -1) {
1415 if (test1.lastIndexOf(test3) != -1) {
1418 if (test1.caseCompare(test3, U_FOLD_CASE_DEFAULT) != 1 || test3.caseCompare(test1, U_FOLD_CASE_DEFAULT) != -1) {
1421 if (test1.compareCodePointOrder(test3) != 1 || test3.compareCodePointOrder(test1) != -1) {
1426 test3.setToBogus();
1427 test3.append((UChar)0x61);
1428 if(!test3.isBogus() || test3.getBuffer()!=0) {
1432 test3.setToBogus();
1433 test3.findAndReplace(UnicodeString((UChar)0x61), test2);
1434 if(!test3.isBogus() || test3.getBuffer()!=0) {
1438 test3.setToBogus();
1439 test3.trim();
1440 if(!test3.isBogus() || test3.getBuffer()!=0) {
1444 test3.setToBogus();
1445 test3.remove(1);
1446 if(!test3.isBogus() || test3.getBuffer()!=0) {
1450 test3.setToBogus();
1451 if(!test3.setCharAt(0, 0x62).isBogus() || !test3.isEmpty()) {
1455 test3.setToBogus();
1456 if(test3.truncate(1) || !test3.isBogus() || !test3.isEmpty()) {
1461 test3.setToBogus();
1462 if(!test3.isBogus() || (test3=test1).isBogus() || test3!=test1) {
1466 test3.setToBogus();
1467 if(!test3.isBogus() || test3.fastCopyFrom(test1).isBogus() || test3!=test1) {
1471 test3.setToBogus();
1472 if(!test3.isBogus() || test3.setTo(test1).isBogus() || test3!=test1) {
1476 test3.setToBogus();
1477 if(!test3.isBogus() || test3.setTo(test1, 0).isBogus() || test3!=test1) {
1481 test3.setToBogus();
1482 if(!test3.isBogus() || test3.setTo(test1, 0, 0x7fffffff).isBogus() || test3!=test1) {
1486 test3.setToBogus();
1487 if(!test3.isBogus() || test3.setTo(test1.getBuffer(), test1.length()).isBogus() || test3!=test1) {
1491 test3.setToBogus();
1492 if(!test3.isBogus() || test3.setTo((UChar)0x2028).isBogus() || test3!=UnicodeString((UChar)0x2028)) {
1496 test3.setToBogus();
1497 if(!test3.isBogus() || test3.setTo((UChar32)0x1d157).isBogus() || test3!=UnicodeString((UChar32)0x1d157)) {
1501 test3.setToBogus();
1502 if(!test3.isBogus() || test3.setTo(FALSE, test1.getBuffer(), test1.length()).isBogus() || test3!=test1) {
1507 test3.setToBogus();
1508 if(!test3.isBogus() || test3.setTo((UChar *)test1.getBuffer(), test1.length(), test1.getCapacity()).isBogus() || test3!=test1) {
1513 test3.setToBogus();
1514 if(!test3.isBogus() || (test3=UnicodeString()).isBogus() || !test3.isEmpty()) {
1518 test3.setToBogus();
1519 if(!test3.isBogus() || test3.setTo(UnicodeString()).isBogus() || !test3.isEmpty()) {
1523 test3.setToBogus();
1524 if(test3.remove().isBogus() || test3.getBuffer()==0 || !test3.isEmpty()) {
1528 test3.setToBogus();
1529 if(test3.remove(0, INT32_MAX).isBogus() || test3.getBuffer()==0 || !test3.isEmpty()) {
1533 test3.setToBogus();
1534 if(test3.truncate(0) || test3.isBogus() || !test3.isEmpty()) {
1538 test3.setToBogus();
1539 if(!test3.isBogus() || test3.setTo((UChar32)-1).isBogus() || !test3.isEmpty()) {
1545 test3.setToBogus();
1546 if(!test3.isBogus() || test3.setTo(&nul, 0).isBogus() || !test3.isEmpty()) {
1550 test3.setToBogus();
1551 if(!test3.isBogus() || test3.getBuffer()!=0) {
1555 test3.setToBogus();
1556 if(test1.isBogus() || !(test1=test3).isBogus()) {
1585 if(test1!=test3 || test1.compare(test3)!=0) {