• Home
  • Raw
  • Download

Lines Matching refs:test3

110     UnicodeString test3;  in TestBasicManipulation()  local
111 test3.append((UChar32)0x20402); in TestBasicManipulation()
112 if(test3 != CharsToUnicodeString("\\uD841\\uDC02")){ in TestBasicManipulation()
113 …nicodeString)"append failed for UChar32, expected \"\\\\ud841\\\\udc02\", got " + prettify(test3)); in TestBasicManipulation()
115 if(test3.length() != 2){ in TestBasicManipulation()
116 … errln(UnicodeString("append or length failed for UChar32, expected 2, got ") + test3.length()); in TestBasicManipulation()
118 test3.append((UChar32)0x0074); in TestBasicManipulation()
119 if(test3 != CharsToUnicodeString("\\uD841\\uDC02t")){ in TestBasicManipulation()
120 …icodeString)"append failed for UChar32, expected \"\\\\uD841\\\\uDC02t\", got " + prettify(test3)); in TestBasicManipulation()
122 if(test3.length() != 3){ in TestBasicManipulation()
123 … errln((UnicodeString)"append or length failed for UChar32, expected 2, got " + test3.length()); in TestBasicManipulation()
127 if( test3.setTo((UChar32)0x10330).length() != 2 || in TestBasicManipulation()
128 test3.insert(0, (UChar32)0x20100).length() != 4 || in TestBasicManipulation()
129 test3.replace(2, 2, (UChar32)0xe0061).length() != 4 || in TestBasicManipulation()
130 (test3 = (UChar32)0x14001).length() != 2 in TestBasicManipulation()
258 UnicodeString test3("this is a test of the emergency broadcast system"); in TestCompare() local
269 if (test1 != test2 || test1 == test3 || test1 == test4) in TestCompare()
273 if (test1 > test2 || test1 < test2 || !(test1 < test3) || !(test1 > test4) || in TestCompare()
280 if (!(test1 >= test2) || !(test1 <= test2) || !(test1 <= test3) || !(test1 >= test4)) in TestCompare()
284 if (test1.compare(test2) != 0 || test1.compare(test3) >= 0 || test1.compare(test4) <= 0) in TestCompare()
289 test3.compare(0, 14, test2) != 0 || in TestCompare()
291 test3.compare(0, 18, test1) <=0 ) in TestCompare()
295 … if (test2.compare(uniChars) != 0 || test3.compare(uniChars) <= 0 || test4.compare(uniChars) >= 0) in TestCompare()
299 if (test2.compare(chars) != 0 || test3.compare(chars) <= 0 || test4.compare(chars) >= 0) in TestCompare()
308 || test1.compare(0, 14, test3, 0, 14) != 0 in TestCompare()
313 || test1.compare(10, 4, test3, 22, 9) <= 0 in TestCompare()
318 …if (test1.compareBetween(0, 14, test2, 0, 14) != 0 || test1.compareBetween(0, 14, test3, 0, 14) !=… in TestCompare()
322 …if (test1.compareBetween(10, 14, test2, 0, 4) >= 0 || test1.compareBetween(10, 14, test3, 22, 31) … in TestCompare()
458 UChar test3[13] = {1, 2, 3, 4, 5, 6, 7, 8, 8, 10, 11, 12, 13}; in TestExtract() local
464 test1.extract(11, 12, test3); in TestExtract()
498 if (test1.charAt((int32_t)(11 + i)) != test3[i]) { in TestExtract()
646 UChar test3[] = { 0x53, 0x50, 0x41, 0x4d, 0x4d, 0 }; in TestRemoveReplace() local
651 test1.replace(12, 5, test3, 4); in TestRemoveReplace()
652 test3[4] = 0; in TestRemoveReplace()
653 test1.replace(17, 4, test3); in TestRemoveReplace()
704 UnicodeString test3(testData); in TestSearching() local
735 startPos != -1 && startPos < test3.length(); in TestSearching()
736 (startPos = test3.indexOf(test4, startPos)) != -1 ? (++occurrences, startPos += 2) : 0) in TestSearching()
742 startPos != -1 && startPos < test3.length(); in TestSearching()
743 (startPos = test3.indexOf(test4, startPos)) != -1 ? (++occurrences, startPos += 2) : 0) in TestSearching()
775 for( occurrences =0, startPos=0; startPos < test3.length(); startPos +=1){ in TestSearching()
776 subString.append(test3, startPos, test3.length()); in TestSearching()
786 startPos != -1 && startPos < test3.length(); in TestSearching()
787 … (startPos = test3.indexOf(testChar32, startPos)) != -1 ? (++occurrences, startPos += 1) : 0) in TestSearching()
792 endPos=test3.length(); in TestSearching()
794 startPos != -1 && startPos < test3.length(); in TestSearching()
795 …(startPos = test3.indexOf(testChar32, startPos, endPos - startPos)) != -1 ? (++occurrences, startP… in TestSearching()
826 startPos=test3.length(); in TestSearching()
829 (startPos = test3.lastIndexOf(testChar32, 5, startPos - 5)) != -1 ? ++occurrences : 0) in TestSearching()
835 for ( occurrences = 0, endPos = test3.length(); endPos > 0; endPos -= 1){ in TestSearching()
837 subString.append(test3, 0, endPos); in TestSearching()
850 if(test3.indexOf((UChar32)0xd841) != 4 || test3.indexOf((UChar32)0xdc02) != 3) { in TestSearching()
853 if( UnicodeString(test3, 0, 17).lastIndexOf((UChar)0xd841, 0) != 4 || in TestSearching()
854 UnicodeString(test3, 0, 17).lastIndexOf((UChar32)0xd841, 2) != 4 || in TestSearching()
855test3.lastIndexOf((UChar32)0xd841, 0, 17) != 4 || test3.lastIndexOf((UChar32)0xdc02, 0, 17) != 16 in TestSearching()
866 UnicodeString test3("Hi! How ya doin'? Beautiful day, isn't it?"); in TestSpacePadding() local
881 expectedValue = test3; in TestSpacePadding()
882 returnVal = test3.padTrailing(15); in TestSpacePadding()
883 if (returnVal == TRUE || test3 != expectedValue) in TestSpacePadding()
884 errln("padTrailing() failed: expected \"" + expectedValue + "\", got \"" + test3 + "\"."); in TestSpacePadding()
901 test3.trim(); in TestSpacePadding()
903 if (test3 != expectedValue) in TestSpacePadding()
904 errln("trim() failed: expected \"" + expectedValue + "\", got \"" + test3 + "\"."); in TestSpacePadding()
916 returnVal = test3.truncate(15); in TestSpacePadding()
918 if (returnVal == FALSE || test3 != expectedValue) in TestSpacePadding()
919 errln("truncate() failed: expected \"" + expectedValue + "\", got \"" + test3 + "\"."); in TestSpacePadding()
927 UnicodeString test3("country."); in TestPrefixAndSuffix() local
934 if (test1.startsWith(test3) || in TestPrefixAndSuffix()
935 test1.startsWith(test3.getBuffer(), test3.length()) || in TestPrefixAndSuffix()
936 test1.startsWith(test3.getTerminatedBuffer(), 0, -1) in TestPrefixAndSuffix()
938 errln("startsWith() failed: \"" + test3 + "\" shouldn't be a prefix of \"" + test1 + "\"."); in TestPrefixAndSuffix()
945 if (!test1.endsWith(test3)) { in TestPrefixAndSuffix()
946 errln("endsWith(test3) failed: \"" + test3 + "\" should be a suffix of \"" + test1 + "\"."); in TestPrefixAndSuffix()
948 if (!test1.endsWith(test3, 0, INT32_MAX)) { in TestPrefixAndSuffix()
949 …errln("endsWith(test3, 0, INT32_MAX) failed: \"" + test3 + "\" should be a suffix of \"" + test1 +… in TestPrefixAndSuffix()
952 if(!test1.endsWith(test3.getBuffer(), test3.length())) { in TestPrefixAndSuffix()
953 …errln("endsWith(test3.getBuffer(), test3.length()) failed: \"" + test3 + "\" should be a suffix of… in TestPrefixAndSuffix()
955 if(!test1.endsWith(test3.getTerminatedBuffer(), 0, -1)) { in TestPrefixAndSuffix()
956 …errln("endsWith(test3.getTerminatedBuffer(), 0, -1) failed: \"" + test3 + "\" should be a suffix o… in TestPrefixAndSuffix()
959 if (!test3.startsWith(test4)) { in TestPrefixAndSuffix()
960 errln("endsWith(test4) failed: \"" + test4 + "\" should be a prefix of \"" + test3 + "\"."); in TestPrefixAndSuffix()
963 if (test4.startsWith(test3)) { in TestPrefixAndSuffix()
964 … errln("startsWith(test3) failed: \"" + test3 + "\" shouldn't be a prefix of \"" + test4 + "\"."); in TestPrefixAndSuffix()
984 UnicodeString test3("MISSISSIPPI"); in TestFindAndReplace() local
988 test1.findAndReplace(test2, test3); in TestFindAndReplace()
992 test1.findAndReplace(2, 32, test3, test2); in TestFindAndReplace()
1036 UnicodeString test3("Me too!"); in TestMiscellaneous() local
1437 UnicodeString test3("Me too!"); in TestBogus() local
1440 if (test1.isBogus() || test2.isBogus() || test3.isBogus()) { in TestBogus()
1446 test3.setTo(FALSE, test1.getBuffer(), -2); in TestBogus()
1447 if(!test3.isBogus()) { in TestBogus()
1450 if (test1.hashCode() != test2.hashCode() || test1.hashCode() == test3.hashCode()) { in TestBogus()
1453 if(test3.getBuffer()!=0 || test3.getBuffer(20)!=0 || test3.getTerminatedBuffer()!=0) { in TestBogus()
1456 if (test1.indexOf(test3) != -1) { in TestBogus()
1459 if (test1.lastIndexOf(test3) != -1) { in TestBogus()
1462 …if (test1.caseCompare(test3, U_FOLD_CASE_DEFAULT) != 1 || test3.caseCompare(test1, U_FOLD_CASE_DEF… in TestBogus()
1465 if (test1.compareCodePointOrder(test3) != 1 || test3.compareCodePointOrder(test1) != -1) { in TestBogus()
1470 test3.setToBogus(); in TestBogus()
1471 test3.append((UChar)0x61); in TestBogus()
1472 if(!test3.isBogus() || test3.getBuffer()!=0) { in TestBogus()
1476 test3.setToBogus(); in TestBogus()
1477 test3.findAndReplace(UnicodeString((UChar)0x61), test2); in TestBogus()
1478 if(!test3.isBogus() || test3.getBuffer()!=0) { in TestBogus()
1482 test3.setToBogus(); in TestBogus()
1483 test3.trim(); in TestBogus()
1484 if(!test3.isBogus() || test3.getBuffer()!=0) { in TestBogus()
1488 test3.setToBogus(); in TestBogus()
1489 test3.remove(1); in TestBogus()
1490 if(!test3.isBogus() || test3.getBuffer()!=0) { in TestBogus()
1494 test3.setToBogus(); in TestBogus()
1495 if(!test3.setCharAt(0, 0x62).isBogus() || !test3.isEmpty()) { in TestBogus()
1499 test3.setToBogus(); in TestBogus()
1500 if(test3.truncate(1) || !test3.isBogus() || !test3.isEmpty()) { in TestBogus()
1505 test3.setToBogus(); in TestBogus()
1506 if(!test3.isBogus() || (test3=test1).isBogus() || test3!=test1) { in TestBogus()
1510 test3.setToBogus(); in TestBogus()
1511 if(!test3.isBogus() || test3.fastCopyFrom(test1).isBogus() || test3!=test1) { in TestBogus()
1515 test3.setToBogus(); in TestBogus()
1516 if(!test3.isBogus() || test3.setTo(test1).isBogus() || test3!=test1) { in TestBogus()
1520 test3.setToBogus(); in TestBogus()
1521 if(!test3.isBogus() || test3.setTo(test1, 0).isBogus() || test3!=test1) { in TestBogus()
1525 test3.setToBogus(); in TestBogus()
1526 if(!test3.isBogus() || test3.setTo(test1, 0, 0x7fffffff).isBogus() || test3!=test1) { in TestBogus()
1530 test3.setToBogus(); in TestBogus()
1531 … if(!test3.isBogus() || test3.setTo(test1.getBuffer(), test1.length()).isBogus() || test3!=test1) { in TestBogus()
1535 test3.setToBogus(); in TestBogus()
1536 …if(!test3.isBogus() || test3.setTo((UChar)0x2028).isBogus() || test3!=UnicodeString((UChar)0x2028)… in TestBogus()
1540 test3.setToBogus(); in TestBogus()
1541 …if(!test3.isBogus() || test3.setTo((UChar32)0x1d157).isBogus() || test3!=UnicodeString((UChar32)0x… in TestBogus()
1545 test3.setToBogus(); in TestBogus()
1546 …if(!test3.isBogus() || test3.setTo(FALSE, test1.getBuffer(), test1.length()).isBogus() || test3!=t… in TestBogus()
1551 test3.setToBogus(); in TestBogus()
1552 …if(!test3.isBogus() || test3.setTo((UChar *)test1.getBuffer(), test1.length(), test1.getCapacity()… in TestBogus()
1557 test3.setToBogus(); in TestBogus()
1558 if(!test3.isBogus() || (test3=UnicodeString()).isBogus() || !test3.isEmpty()) { in TestBogus()
1562 test3.setToBogus(); in TestBogus()
1563 if(!test3.isBogus() || test3.setTo(UnicodeString()).isBogus() || !test3.isEmpty()) { in TestBogus()
1567 test3.setToBogus(); in TestBogus()
1568 if(test3.remove().isBogus() || test3.getBuffer()==0 || !test3.isEmpty()) { in TestBogus()
1572 test3.setToBogus(); in TestBogus()
1573 if(test3.remove(0, INT32_MAX).isBogus() || test3.getBuffer()==0 || !test3.isEmpty()) { in TestBogus()
1577 test3.setToBogus(); in TestBogus()
1578 if(test3.truncate(0) || test3.isBogus() || !test3.isEmpty()) { in TestBogus()
1582 test3.setToBogus(); in TestBogus()
1583 if(!test3.isBogus() || test3.setTo((UChar32)-1).isBogus() || !test3.isEmpty()) { in TestBogus()
1589 test3.setToBogus(); in TestBogus()
1590 if(!test3.isBogus() || test3.setTo(&nul, 0).isBogus() || !test3.isEmpty()) { in TestBogus()
1594 test3.setToBogus(); in TestBogus()
1595 if(!test3.isBogus() || test3.getBuffer()!=0) { in TestBogus()
1599 test3.setToBogus(); in TestBogus()
1600 if(test1.isBogus() || !(test1=test3).isBogus()) { in TestBogus()
1629 if(test1!=test3 || test1.compare(test3)!=0) { in TestBogus()