• Home
  • Raw
  • Download

Lines Matching refs:test3

122     UnicodeString test3;  in TestBasicManipulation()  local
123 test3.append((UChar32)0x20402); in TestBasicManipulation()
124 if(test3 != CharsToUnicodeString("\\uD841\\uDC02")){ in TestBasicManipulation()
125 …nicodeString)"append failed for UChar32, expected \"\\\\ud841\\\\udc02\", got " + prettify(test3)); in TestBasicManipulation()
127 if(test3.length() != 2){ in TestBasicManipulation()
128 … errln(UnicodeString("append or length failed for UChar32, expected 2, got ") + test3.length()); in TestBasicManipulation()
130 test3.append((UChar32)0x0074); in TestBasicManipulation()
131 if(test3 != CharsToUnicodeString("\\uD841\\uDC02t")){ in TestBasicManipulation()
132 …icodeString)"append failed for UChar32, expected \"\\\\uD841\\\\uDC02t\", got " + prettify(test3)); in TestBasicManipulation()
134 if(test3.length() != 3){ in TestBasicManipulation()
135 … errln((UnicodeString)"append or length failed for UChar32, expected 2, got " + test3.length()); in TestBasicManipulation()
139 if( test3.setTo((UChar32)0x10330).length() != 2 || in TestBasicManipulation()
140 test3.insert(0, (UChar32)0x20100).length() != 4 || in TestBasicManipulation()
141 test3.replace(2, 2, (UChar32)0xe0061).length() != 4 || in TestBasicManipulation()
142 (test3 = (UChar32)0x14001).length() != 2 in TestBasicManipulation()
270 UnicodeString test3("this is a test of the emergency broadcast system"); in TestCompare() local
281 if (test1 != test2 || test1 == test3 || test1 == test4) in TestCompare()
285 if (test1 > test2 || test1 < test2 || !(test1 < test3) || !(test1 > test4) || in TestCompare()
292 if (!(test1 >= test2) || !(test1 <= test2) || !(test1 <= test3) || !(test1 >= test4)) in TestCompare()
296 if (test1.compare(test2) != 0 || test1.compare(test3) >= 0 || test1.compare(test4) <= 0) in TestCompare()
301 test3.compare(0, 14, test2) != 0 || in TestCompare()
303 test3.compare(0, 18, test1) <=0 ) in TestCompare()
307 … if (test2.compare(uniChars) != 0 || test3.compare(uniChars) <= 0 || test4.compare(uniChars) >= 0) in TestCompare()
311 if (test2.compare(chars) != 0 || test3.compare(chars) <= 0 || test4.compare(chars) >= 0) in TestCompare()
320 || test1.compare(0, 14, test3, 0, 14) != 0 in TestCompare()
325 || test1.compare(10, 4, test3, 22, 9) <= 0 in TestCompare()
330 …if (test1.compareBetween(0, 14, test2, 0, 14) != 0 || test1.compareBetween(0, 14, test3, 0, 14) !=… in TestCompare()
334 …if (test1.compareBetween(10, 14, test2, 0, 4) >= 0 || test1.compareBetween(10, 14, test3, 22, 31) … in TestCompare()
470 UChar test3[13] = {1, 2, 3, 4, 5, 6, 7, 8, 8, 10, 11, 12, 13}; in TestExtract() local
476 test1.extract(11, 12, test3); in TestExtract()
510 if (test1.charAt((int32_t)(11 + i)) != test3[i]) { in TestExtract()
658 UChar test3[] = { 0x53, 0x50, 0x41, 0x4d, 0x4d, 0 }; in TestRemoveReplace() local
663 test1.replace(12, 5, test3, 4); in TestRemoveReplace()
664 test3[4] = 0; in TestRemoveReplace()
665 test1.replace(17, 4, test3); in TestRemoveReplace()
716 UnicodeString test3(testData); in TestSearching() local
747 startPos != -1 && startPos < test3.length(); in TestSearching()
748 (startPos = test3.indexOf(test4, startPos)) != -1 ? (++occurrences, startPos += 2) : 0) in TestSearching()
754 startPos != -1 && startPos < test3.length(); in TestSearching()
755 (startPos = test3.indexOf(test4, startPos)) != -1 ? (++occurrences, startPos += 2) : 0) in TestSearching()
787 for( occurrences =0, startPos=0; startPos < test3.length(); startPos +=1){ in TestSearching()
788 subString.append(test3, startPos, test3.length()); in TestSearching()
798 startPos != -1 && startPos < test3.length(); in TestSearching()
799 … (startPos = test3.indexOf(testChar32, startPos)) != -1 ? (++occurrences, startPos += 1) : 0) in TestSearching()
804 endPos=test3.length(); in TestSearching()
806 startPos != -1 && startPos < test3.length(); in TestSearching()
807 …(startPos = test3.indexOf(testChar32, startPos, endPos - startPos)) != -1 ? (++occurrences, startP… in TestSearching()
838 startPos=test3.length(); in TestSearching()
841 (startPos = test3.lastIndexOf(testChar32, 5, startPos - 5)) != -1 ? ++occurrences : 0) in TestSearching()
847 for ( occurrences = 0, endPos = test3.length(); endPos > 0; endPos -= 1){ in TestSearching()
849 subString.append(test3, 0, endPos); in TestSearching()
862 if(test3.indexOf((UChar32)0xd841) != 4 || test3.indexOf((UChar32)0xdc02) != 3) { in TestSearching()
865 if( UnicodeString(test3, 0, 17).lastIndexOf((UChar)0xd841, 0) != 4 || in TestSearching()
866 UnicodeString(test3, 0, 17).lastIndexOf((UChar32)0xd841, 2) != 4 || in TestSearching()
867test3.lastIndexOf((UChar32)0xd841, 0, 17) != 4 || test3.lastIndexOf((UChar32)0xdc02, 0, 17) != 16 in TestSearching()
878 UnicodeString test3("Hi! How ya doin'? Beautiful day, isn't it?"); in TestSpacePadding() local
893 expectedValue = test3; in TestSpacePadding()
894 returnVal = test3.padTrailing(15); in TestSpacePadding()
895 if (returnVal == TRUE || test3 != expectedValue) in TestSpacePadding()
896 errln("padTrailing() failed: expected \"" + expectedValue + "\", got \"" + test3 + "\"."); in TestSpacePadding()
913 test3.trim(); in TestSpacePadding()
915 if (test3 != expectedValue) in TestSpacePadding()
916 errln("trim() failed: expected \"" + expectedValue + "\", got \"" + test3 + "\"."); in TestSpacePadding()
928 returnVal = test3.truncate(15); in TestSpacePadding()
930 if (returnVal == FALSE || test3 != expectedValue) in TestSpacePadding()
931 errln("truncate() failed: expected \"" + expectedValue + "\", got \"" + test3 + "\"."); in TestSpacePadding()
939 UnicodeString test3("country."); in TestPrefixAndSuffix() local
946 if (test1.startsWith(test3) || in TestPrefixAndSuffix()
947 test1.startsWith(test3.getBuffer(), test3.length()) || in TestPrefixAndSuffix()
948 test1.startsWith(test3.getTerminatedBuffer(), 0, -1) in TestPrefixAndSuffix()
950 errln("startsWith() failed: \"" + test3 + "\" shouldn't be a prefix of \"" + test1 + "\"."); in TestPrefixAndSuffix()
957 if (!test1.endsWith(test3)) { in TestPrefixAndSuffix()
958 errln("endsWith(test3) failed: \"" + test3 + "\" should be a suffix of \"" + test1 + "\"."); in TestPrefixAndSuffix()
960 if (!test1.endsWith(test3, 0, INT32_MAX)) { in TestPrefixAndSuffix()
961 …errln("endsWith(test3, 0, INT32_MAX) failed: \"" + test3 + "\" should be a suffix of \"" + test1 +… in TestPrefixAndSuffix()
964 if(!test1.endsWith(test3.getBuffer(), test3.length())) { in TestPrefixAndSuffix()
965 …errln("endsWith(test3.getBuffer(), test3.length()) failed: \"" + test3 + "\" should be a suffix of… in TestPrefixAndSuffix()
967 if(!test1.endsWith(test3.getTerminatedBuffer(), 0, -1)) { in TestPrefixAndSuffix()
968 …errln("endsWith(test3.getTerminatedBuffer(), 0, -1) failed: \"" + test3 + "\" should be a suffix o… in TestPrefixAndSuffix()
971 if (!test3.startsWith(test4)) { in TestPrefixAndSuffix()
972 errln("endsWith(test4) failed: \"" + test4 + "\" should be a prefix of \"" + test3 + "\"."); in TestPrefixAndSuffix()
975 if (test4.startsWith(test3)) { in TestPrefixAndSuffix()
976 … errln("startsWith(test3) failed: \"" + test3 + "\" shouldn't be a prefix of \"" + test4 + "\"."); in TestPrefixAndSuffix()
996 UnicodeString test3("MISSISSIPPI"); in TestFindAndReplace() local
1000 test1.findAndReplace(test2, test3); in TestFindAndReplace()
1004 test1.findAndReplace(2, 32, test3, test2); in TestFindAndReplace()
1048 UnicodeString test3("Me too!"); in TestMiscellaneous() local
1447 UnicodeString test3("Me too!"); in TestBogus() local
1450 if (test1.isBogus() || test2.isBogus() || test3.isBogus()) { in TestBogus()
1456 test3.setTo(FALSE, test1.getBuffer(), -2); in TestBogus()
1457 if(!test3.isBogus()) { in TestBogus()
1460 if (test1.hashCode() != test2.hashCode() || test1.hashCode() == test3.hashCode()) { in TestBogus()
1463 if(test3.getBuffer()!=0 || test3.getBuffer(20)!=0 || test3.getTerminatedBuffer()!=0) { in TestBogus()
1466 if (test1.indexOf(test3) != -1) { in TestBogus()
1469 if (test1.lastIndexOf(test3) != -1) { in TestBogus()
1472 …if (test1.caseCompare(test3, U_FOLD_CASE_DEFAULT) != 1 || test3.caseCompare(test1, U_FOLD_CASE_DEF… in TestBogus()
1475 if (test1.compareCodePointOrder(test3) != 1 || test3.compareCodePointOrder(test1) != -1) { in TestBogus()
1480 test3.setToBogus(); in TestBogus()
1481 test3.append((UChar)0x61); in TestBogus()
1482 if(!test3.isBogus() || test3.getBuffer()!=0) { in TestBogus()
1486 test3.setToBogus(); in TestBogus()
1487 test3.findAndReplace(UnicodeString((UChar)0x61), test2); in TestBogus()
1488 if(!test3.isBogus() || test3.getBuffer()!=0) { in TestBogus()
1492 test3.setToBogus(); in TestBogus()
1493 test3.trim(); in TestBogus()
1494 if(!test3.isBogus() || test3.getBuffer()!=0) { in TestBogus()
1498 test3.setToBogus(); in TestBogus()
1499 test3.remove(1); in TestBogus()
1500 if(!test3.isBogus() || test3.getBuffer()!=0) { in TestBogus()
1504 test3.setToBogus(); in TestBogus()
1505 if(!test3.setCharAt(0, 0x62).isBogus() || !test3.isEmpty()) { in TestBogus()
1509 test3.setToBogus(); in TestBogus()
1510 if(test3.truncate(1) || !test3.isBogus() || !test3.isEmpty()) { in TestBogus()
1515 test3.setToBogus(); in TestBogus()
1516 if(!test3.isBogus() || (test3=test1).isBogus() || test3!=test1) { in TestBogus()
1520 test3.setToBogus(); in TestBogus()
1521 if(!test3.isBogus() || test3.fastCopyFrom(test1).isBogus() || test3!=test1) { in TestBogus()
1525 test3.setToBogus(); in TestBogus()
1526 if(!test3.isBogus() || test3.setTo(test1).isBogus() || test3!=test1) { in TestBogus()
1530 test3.setToBogus(); in TestBogus()
1531 if(!test3.isBogus() || test3.setTo(test1, 0).isBogus() || test3!=test1) { in TestBogus()
1535 test3.setToBogus(); in TestBogus()
1536 if(!test3.isBogus() || test3.setTo(test1, 0, 0x7fffffff).isBogus() || test3!=test1) { in TestBogus()
1540 test3.setToBogus(); in TestBogus()
1541 … if(!test3.isBogus() || test3.setTo(test1.getBuffer(), test1.length()).isBogus() || test3!=test1) { in TestBogus()
1545 test3.setToBogus(); in TestBogus()
1546 …if(!test3.isBogus() || test3.setTo((UChar)0x2028).isBogus() || test3!=UnicodeString((UChar)0x2028)… in TestBogus()
1550 test3.setToBogus(); in TestBogus()
1551 …if(!test3.isBogus() || test3.setTo((UChar32)0x1d157).isBogus() || test3!=UnicodeString((UChar32)0x… in TestBogus()
1555 test3.setToBogus(); in TestBogus()
1556 …if(!test3.isBogus() || test3.setTo(FALSE, test1.getBuffer(), test1.length()).isBogus() || test3!=t… in TestBogus()
1561 test3.setToBogus(); in TestBogus()
1562 if(!test3.isBogus() || in TestBogus()
1563 test3.setTo(const_cast<UChar *>(test1.getBuffer()), in TestBogus()
1565 test3!=test1) { in TestBogus()
1570 test3.setToBogus(); in TestBogus()
1571 if(!test3.isBogus() || (test3=UnicodeString()).isBogus() || !test3.isEmpty()) { in TestBogus()
1575 test3.setToBogus(); in TestBogus()
1576 if(!test3.isBogus() || test3.setTo(UnicodeString()).isBogus() || !test3.isEmpty()) { in TestBogus()
1580 test3.setToBogus(); in TestBogus()
1581 if(test3.remove().isBogus() || test3.getBuffer()==0 || !test3.isEmpty()) { in TestBogus()
1585 test3.setToBogus(); in TestBogus()
1586 if(test3.remove(0, INT32_MAX).isBogus() || test3.getBuffer()==0 || !test3.isEmpty()) { in TestBogus()
1590 test3.setToBogus(); in TestBogus()
1591 if(test3.truncate(0) || test3.isBogus() || !test3.isEmpty()) { in TestBogus()
1595 test3.setToBogus(); in TestBogus()
1596 if(!test3.isBogus() || test3.setTo((UChar32)-1).isBogus() || !test3.isEmpty()) { in TestBogus()
1602 test3.setToBogus(); in TestBogus()
1603 if(!test3.isBogus() || test3.setTo(&nul, 0).isBogus() || !test3.isEmpty()) { in TestBogus()
1607 test3.setToBogus(); in TestBogus()
1608 if(!test3.isBogus() || test3.getBuffer()!=0) { in TestBogus()
1612 test3.setToBogus(); in TestBogus()
1613 if(test1.isBogus() || !(test1=test3).isBogus()) { in TestBogus()
1642 if(test1!=test3 || test1.compare(test3)!=0) { in TestBogus()