Lines Matching refs:test2
102 UnicodeString test2(temp, 15); in TestBasicManipulation() local
105 if (test2 != expectedValue) in TestBasicManipulation()
106 errln("extract() failed: expected \"" + expectedValue + "\"\n,got \"" + test2 + "\""); in TestBasicManipulation()
108 test2 += " for me to go!\n"; in TestBasicManipulation()
110 if (test2 != expectedValue) in TestBasicManipulation()
111 errln("operator+=() failed: expected \"" + expectedValue + "\"\n,got \"" + test2 + "\""); in TestBasicManipulation()
115 if (test2.length() != 30) in TestBasicManipulation()
116 errln("length() failed: expected 30, got " + test2.length()); in TestBasicManipulation()
265 UnicodeString test2("this is a test"); in TestCompare() local
277 if (test1 != test2 || test1 == test3 || test1 == test4) in TestCompare()
281 if (test1 > test2 || test1 < test2 || !(test1 < test3) || !(test1 > test4) || in TestCompare()
288 if (!(test1 >= test2) || !(test1 <= test2) || !(test1 <= test3) || !(test1 >= test4)) in TestCompare()
292 if (test1.compare(test2) != 0 || test1.compare(test3) >= 0 || test1.compare(test4) <= 0) in TestCompare()
296 if(test1.compare(0, 14, test2) != 0 || in TestCompare()
297 test3.compare(0, 14, test2) != 0 || in TestCompare()
298 test4.compare(12, 14, test2) != 0 || in TestCompare()
303 … if (test2.compare(uniChars) != 0 || test3.compare(uniChars) <= 0 || test4.compare(uniChars) >= 0) in TestCompare()
307 if (test2.compare(chars) != 0 || test3.compare(chars) <= 0 || test4.compare(chars) >= 0) in TestCompare()
315 if (test1.compare(0, 14, test2, 0, 14) != 0 in TestCompare()
320 if (test1.compare(10, 4, test2, 0, 4) >= 0 in TestCompare()
326 …if (test1.compareBetween(0, 14, test2, 0, 14) != 0 || test1.compareBetween(0, 14, test3, 0, 14) !=… in TestCompare()
330 …if (test1.compareBetween(10, 14, test2, 0, 4) >= 0 || test1.compareBetween(10, 14, test3, 22, 31) … in TestCompare()
335 test2=test1; // share the buffer, length() too large for the stackBuffer in TestCompare()
336 test2.truncate(1); // change only the length, not the buffer in TestCompare()
337 if( test1==test2 || test1<=test2 || in TestCompare()
338 test1.compare(test2)<=0 || in TestCompare()
339 test1.compareCodePointOrder(test2)<=0 || in TestCompare()
340 test1.compareCodePointOrder(0, INT32_MAX, test2)<=0 || in TestCompare()
341 test1.compareCodePointOrder(0, INT32_MAX, test2, 0, INT32_MAX)<=0 || in TestCompare()
342 test1.compareCodePointOrderBetween(0, INT32_MAX, test2, 0, INT32_MAX)<=0 || in TestCompare()
343 test1.caseCompare(test2, U_FOLD_CASE_DEFAULT)<=0 in TestCompare()
465 UnicodeString test2; in TestExtract() local
471 test1.extract(11, 12, test2); in TestExtract()
502 if (test1.charAt((int32_t)(11 + i)) != test2.charAt(i)) { in TestExtract()
653 UnicodeString test2("eat SPAMburgers!"); in TestRemoveReplace() local
658 test1.replace(4, 4, test2, 4, 4); in TestRemoveReplace()
663 test1.replaceBetween(37, 42, test2, 4, 8); in TestRemoveReplace()
698 UnicodeString test2("test"); in TestSearching() local
719 (startPos = test1.indexOf(test2, startPos)) != -1 ? (++occurrences, startPos += 4) : 0) in TestSearching()
726 (startPos = test1.indexOf(test2, startPos)) != -1 ? (++occurrences, startPos += 4) : 0) in TestSearching()
734 …(startPos = test1.indexOf(test2, startPos, endPos - startPos)) != -1 ? (++occurrences, startPos +=… in TestSearching()
804 if(test1.lastIndexOf(test2)!=29) { in TestSearching()
808 …if(test1.lastIndexOf(test2, 15)!=29 || test1.lastIndexOf(test2, 29)!=29 || test1.lastIndexOf(test2… in TestSearching()
814 (startPos = test1.lastIndexOf(test2, 5, startPos - 5)) != -1 ? ++occurrences : 0) in TestSearching()
866 UnicodeString test2(" there"); in TestSpacePadding() local
877 returnVal = test2.padTrailing(15); in TestSpacePadding()
879 if (returnVal == FALSE || test2 != expectedValue) in TestSpacePadding()
880 errln("padTrailing() failed: expected \"" + expectedValue + "\", got \"" + test2 + "\"."); in TestSpacePadding()
897 test2.trim(); in TestSpacePadding()
899 if (test2 != expectedValue) in TestSpacePadding()
900 errln("trim() failed: expected \"" + expectedValue + "\", got \"" + test2 + "\"."); in TestSpacePadding()
912 returnVal = test2.truncate(15); in TestSpacePadding()
914 if (returnVal == TRUE || test2 != expectedValue) in TestSpacePadding()
915 errln("truncate() failed: expected \"" + expectedValue + "\", got \"" + test2 + "\"."); in TestSpacePadding()
927 UnicodeString test2("Now"); in TestPrefixAndSuffix() local
931 if (!test1.startsWith(test2) || !test1.startsWith(test2, 0, test2.length())) { in TestPrefixAndSuffix()
932 errln("startsWith() failed: \"" + test2 + "\" should be a prefix of \"" + test1 + "\"."); in TestPrefixAndSuffix()
942 if (test1.endsWith(test2)) { in TestPrefixAndSuffix()
943 errln("endsWith() failed: \"" + test2 + "\" shouldn't be a suffix of \"" + test1 + "\"."); in TestPrefixAndSuffix()
973 UnicodeString test2("potato"); in TestFindAndReplace() local
978 test1.findAndReplace(test2, test3); in TestFindAndReplace()
982 test1.findAndReplace(2, 32, test3, test2); in TestFindAndReplace()
1025 UnicodeString test2("This is a test"); in TestMiscellaneous() local
1089 test2=UnicodeString("This is another test.", ""); in TestMiscellaneous()
1091 if(q[test1.length()]!=0 || test1!=test2 || test2.compare(q, -1)!=0) { in TestMiscellaneous()
1137 test2=test1; // share the buffer in TestMiscellaneous()
1142 if(test2.length()!=36 || test2[5]!=0x66 || u_strlen(test2.getTerminatedBuffer())!=36) { in TestMiscellaneous()
1148 test2=test1; // share the buffer in TestMiscellaneous()
1153 if(test2.length()!=36 || test2[0]!=0x61 || u_strlen(test2.getTerminatedBuffer())!=36) { in TestMiscellaneous()
1418 UnicodeString test2("This is a test"); in TestBogus() local
1422 if (test1.isBogus() || test2.isBogus() || test3.isBogus()) { in TestBogus()
1432 if (test1.hashCode() != test2.hashCode() || test1.hashCode() == test3.hashCode()) { in TestBogus()
1459 test3.findAndReplace(UnicodeString((UChar)0x61), test2); in TestBogus()
1588 test2.setTo((UChar32)0x10005); in TestBogus()
1589 if(test2.insert(1, NULL, 1).length()!=2) { in TestBogus()
1615 test2.remove(); in TestBogus()
1616 if(test1>=test2 || !(test2>test1) || test1.compare(test2)>=0 || !(test2.compare(test1)>0)) { in TestBogus()