Home | History | Annotate | Download | only in intltest

Lines Matching full:test3

120     UnicodeString test3;
121 test3.append((UChar32)0x20402);
122 if(test3 != CharsToUnicodeString("\\uD841\\uDC02")){
123 errln((UnicodeString)"append failed for UChar32, expected \"\\\\ud841\\\\udc02\", got " + prettify(test3));
125 if(test3.length() != 2){
126 errln(UnicodeString("append or length failed for UChar32, expected 2, got ") + test3.length());
128 test3.append((UChar32)0x0074);
129 if(test3 != CharsToUnicodeString("\\uD841\\uDC02t")){
130 errln((UnicodeString)"append failed for UChar32, expected \"\\\\uD841\\\\uDC02t\", got " + prettify(test3));
132 if(test3.length() != 3){
133 errln((UnicodeString)"append or length failed for UChar32, expected 2, got " + test3.length());
137 if( test3.setTo((UChar32)0x10330).length() != 2 ||
138 test3.insert(0, (UChar32)0x20100).length() != 4 ||
139 test3.replace(2, 2, (UChar32)0xe0061).length() != 4 ||
140 (test3 = (UChar32)0x14001).length() != 2
268 UnicodeString test3("this is a test of the emergency broadcast system");
279 if (test1 != test2 || test1 == test3 || test1 == test4)
283 if (test1 > test2 || test1 < test2 || !(test1 < test3) || !(test1 > test4) ||
290 if (!(test1 >= test2) || !(test1 <= test2) || !(test1 <= test3) || !(test1 >= test4))
294 if (test1.compare(test2) != 0 || test1.compare(test3) >= 0 || test1.compare(test4) <= 0)
299 test3.compare(0, 14, test2) != 0 ||
301 test3.compare(0, 18, test1) <=0 )
305 if (test2.compare(uniChars) != 0 || test3.compare(uniChars) <= 0 || test4.compare(uniChars) >= 0)
309 if (test2.compare(chars) != 0 || test3.compare(chars) <= 0 || test4.compare(chars) >= 0)
318 || test1.compare(0, 14, test3, 0, 14) != 0
323 || test1.compare(10, 4, test3, 22, 9) <= 0
328 if (test1.compareBetween(0, 14, test2, 0, 14) != 0 || test1.compareBetween(0, 14, test3, 0, 14) != 0
332 if (test1.compareBetween(10, 14, test2, 0, 4) >= 0 || test1.compareBetween(10, 14, test3, 22, 31) <= 0
468 UChar test3[13] = {1, 2, 3, 4, 5, 6, 7, 8, 8, 10, 11, 12, 13};
474 test1.extract(11, 12, test3);
508 if (test1.charAt((int32_t)(11 + i)) != test3[i]) {
656 UChar test3[] = { 0x53, 0x50, 0x41, 0x4d, 0x4d, 0 };
661 test1.replace(12, 5, test3, 4);
662 test3[4] = 0;
663 test1.replace(17, 4, test3);
714 UnicodeString test3(testData);
745 startPos != -1 && startPos < test3.length();
746 (startPos = test3.indexOf(test4, startPos)) != -1 ? (++occurrences, startPos += 2) : 0)
752 startPos != -1 && startPos < test3.length();
753 (startPos = test3.indexOf(test4, startPos)) != -1 ? (++occurrences, startPos += 2) : 0)
785 for( occurrences =0, startPos=0; startPos < test3.length(); startPos +=1){
786 subString.append(test3, startPos, test3.length());
796 startPos != -1 && startPos < test3.length();
797 (startPos = test3.indexOf(testChar32, startPos)) != -1 ? (++occurrences, startPos += 1) : 0)
802 endPos=test3.length();
804 startPos != -1 && startPos < test3.length();
805 (startPos = test3.indexOf(testChar32, startPos, endPos - startPos)) != -1 ? (++occurrences, startPos += 1) : 0)
836 startPos=test3.length();
839 (startPos = test3.lastIndexOf(testChar32, 5, startPos - 5)) != -1 ? ++occurrences : 0)
845 for ( occurrences = 0, endPos = test3.length(); endPos > 0; endPos -= 1){
847 subString.append(test3, 0, endPos);
860 if(test3.indexOf((UChar32)0xd841) != 4 || test3.indexOf((UChar32)0xdc02) != 3) {
863 if( UnicodeString(test3, 0, 17).lastIndexOf((UChar)0xd841, 0) != 4 ||
864 UnicodeString(test3, 0, 17).lastIndexOf((UChar32)0xd841, 2) != 4 ||
865 test3.lastIndexOf((UChar32)0xd841, 0, 17) != 4 || test3.lastIndexOf((UChar32)0xdc02, 0, 17) != 16
876 UnicodeString test3("Hi! How ya doin'? Beautiful day, isn't it?");
891 expectedValue = test3;
892 returnVal = test3.padTrailing(15);
893 if (returnVal == TRUE || test3 != expectedValue)
894 errln("padTrailing() failed: expected \"" + expectedValue + "\", got \"" + test3 + "\".");
911 test3.trim();
913 if (test3 != expectedValue)
914 errln("trim() failed: expected \"" + expectedValue + "\", got \"" + test3 + "\".");
926 returnVal = test3.truncate(15);
928 if (returnVal == FALSE || test3 != expectedValue)
929 errln("truncate() failed: expected \"" + expectedValue + "\", got \"" + test3 + "\".");
937 UnicodeString test3("country.");
944 if (test1.startsWith(test3) ||
945 test1.startsWith(test3.getBuffer(), test3.length()) ||
946 test1.startsWith(test3.getTerminatedBuffer(), 0, -1)
948 errln("startsWith() failed: \"" + test3 + "\" shouldn't be a prefix of \"" + test1 + "\".");
955 if (!test1.endsWith(test3)) {
956 errln("endsWith(test3) failed: \"" + test3 + "\" should be a suffix of \"" + test1 + "\".");
958 if (!test1.endsWith(test3, 0, INT32_MAX)) {
959 errln("endsWith(test3, 0, INT32_MAX) failed: \"" + test3 + "\" should be a suffix of \"" + test1 + "\".");
962 if(!test1.endsWith(test3.getBuffer(), test3.length())) {
963 errln("endsWith(test3.getBuffer(), test3.length()) failed: \"" + test3 + "\" should be a suffix of \"" + test1 + "\".");
965 if(!test1.endsWith(test3.getTerminatedBuffer(), 0, -1)) {
966 errln("endsWith(test3.getTerminatedBuffer(), 0, -1) failed: \"" + test3 + "\" should be a suffix of \"" + test1 + "\".");
969 if (!test3.startsWith(test4)) {
970 errln("endsWith(test4) failed: \"" + test4 + "\" should be a prefix of \"" + test3 + "\".");
973 if (test4.startsWith(test3)) {
974 errln("startsWith(test3) failed: \"" + test3 + "\" shouldn't be a prefix of \"" + test4 + "\".");
994 UnicodeString test3("MISSISSIPPI");
998 test1.findAndReplace(test2, test3);
1002 test1.findAndReplace(2, 32, test3, test2);
1046 UnicodeString test3("Me too!");
1439 UnicodeString test3("Me too!");
1442 if (test1.isBogus() || test2.isBogus() || test3.isBogus()) {
1448 test3.setTo(FALSE, test1.getBuffer(), -2);
1449 if(!test3.isBogus()) {
1452 if (test1.hashCode() != test2.hashCode() || test1.hashCode() == test3.hashCode()) {
1455 if(test3.getBuffer()!=0 || test3.getBuffer(20)!=0 || test3.getTerminatedBuffer()!=0) {
1458 if (test1.indexOf(test3) != -1) {
1461 if (test1.lastIndexOf(test3) != -1) {
1464 if (test1.caseCompare(test3, U_FOLD_CASE_DEFAULT) != 1 || test3.caseCompare(test1, U_FOLD_CASE_DEFAULT) != -1) {
1467 if (test1.compareCodePointOrder(test3) != 1 || test3.compareCodePointOrder(test1) != -1) {
1472 test3.setToBogus();
1473 test3.append((UChar)0x61);
1474 if(!test3.isBogus() || test3.getBuffer()!=0) {
1478 test3.setToBogus();
1479 test3.findAndReplace(UnicodeString((UChar)0x61), test2);
1480 if(!test3.isBogus() || test3.getBuffer()!=0) {
1484 test3.setToBogus();
1485 test3.trim();
1486 if(!test3.isBogus() || test3.getBuffer()!=0) {
1490 test3.setToBogus();
1491 test3.remove(1);
1492 if(!test3.isBogus() || test3.getBuffer()!=0) {
1496 test3.setToBogus();
1497 if(!test3.setCharAt(0, 0x62).isBogus() || !test3.isEmpty()) {
1501 test3.setToBogus();
1502 if(test3.truncate(1) || !test3.isBogus() || !test3.isEmpty()) {
1507 test3.setToBogus();
1508 if(!test3.isBogus() || (test3=test1).isBogus() || test3!=test1) {
1512 test3.setToBogus();
1513 if(!test3.isBogus() || test3.fastCopyFrom(test1).isBogus() || test3!=test1) {
1517 test3.setToBogus();
1518 if(!test3.isBogus() || test3.setTo(test1).isBogus() || test3!=test1) {
1522 test3.setToBogus();
1523 if(!test3.isBogus() || test3.setTo(test1, 0).isBogus() || test3!=test1) {
1527 test3.setToBogus();
1528 if(!test3.isBogus() || test3.setTo(test1, 0, 0x7fffffff).isBogus() || test3!=test1) {
1532 test3.setToBogus();
1533 if(!test3.isBogus() || test3.setTo(test1.getBuffer(), test1.length()).isBogus() || test3!=test1) {
1537 test3.setToBogus();
1538 if(!test3.isBogus() || test3.setTo((UChar)0x2028).isBogus() || test3!=UnicodeString((UChar)0x2028)) {
1542 test3.setToBogus();
1543 if(!test3.isBogus() || test3.setTo((UChar32)0x1d157).isBogus() || test3!=UnicodeString((UChar32)0x1d157)) {
1547 test3.setToBogus();
1548 if(!test3.isBogus() || test3.setTo(FALSE, test1.getBuffer(), test1.length()).isBogus() || test3!=test1) {
1553 test3.setToBogus();
1554 if(!test3.isBogus() || test3.setTo((UChar *)test1.getBuffer(), test1.length(), test1.getCapacity()).isBogus() || test3!=test1) {
1559 test3.setToBogus();
1560 if(!test3.isBogus() || (test3=UnicodeString()).isBogus() || !test3.isEmpty()) {
1564 test3.setToBogus();
1565 if(!test3.isBogus() || test3.setTo(UnicodeString()).isBogus() || !test3.isEmpty()) {
1569 test3.setToBogus();
1570 if(test3.remove().isBogus() || test3.getBuffer()==0 || !test3.isEmpty()) {
1574 test3.setToBogus();
1575 if(test3.remove(0, INT32_MAX).isBogus() || test3.getBuffer()==0 || !test3.isEmpty()) {
1579 test3.setToBogus();
1580 if(test3.truncate(0) || test3.isBogus() || !test3.isEmpty()) {
1584 test3.setToBogus();
1585 if(!test3.isBogus() || test3.setTo((UChar32)-1).isBogus() || !test3.isEmpty()) {
1591 test3.setToBogus();
1592 if(!test3.isBogus() || test3.setTo(&nul, 0).isBogus() || !test3.isEmpty()) {
1596 test3.setToBogus();
1597 if(!test3.isBogus() || test3.getBuffer()!=0) {
1601 test3.setToBogus();
1602 if(test1.isBogus() || !(test1=test3).isBogus()) {
1631 if(test1!=test3 || test1.compare(test3)!=0) {