Lines Matching refs:test2
94 UnicodeString test2(temp, 15); in TestBasicManipulation() local
97 if (test2 != expectedValue) in TestBasicManipulation()
98 errln("extract() failed: expected \"" + expectedValue + "\"\n,got \"" + test2 + "\""); in TestBasicManipulation()
100 test2 += " for me to go!\n"; in TestBasicManipulation()
102 if (test2 != expectedValue) in TestBasicManipulation()
103 errln("operator+=() failed: expected \"" + expectedValue + "\"\n,got \"" + test2 + "\""); in TestBasicManipulation()
107 if (test2.length() != 30) in TestBasicManipulation()
108 errln(UnicodeString("length() failed: expected 30, got ") + test2.length()); in TestBasicManipulation()
257 UnicodeString test2("this is a test"); 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()
288 if(test1.compare(0, 14, test2) != 0 || in TestCompare()
289 test3.compare(0, 14, test2) != 0 || in TestCompare()
290 test4.compare(12, 14, test2) != 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()
307 if (test1.compare(0, 14, test2, 0, 14) != 0 in TestCompare()
312 if (test1.compare(10, 4, test2, 0, 4) >= 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()
327 test2=test1; // share the buffer, length() too large for the stackBuffer in TestCompare()
328 test2.truncate(1); // change only the length, not the buffer in TestCompare()
329 if( test1==test2 || test1<=test2 || in TestCompare()
330 test1.compare(test2)<=0 || in TestCompare()
331 test1.compareCodePointOrder(test2)<=0 || in TestCompare()
332 test1.compareCodePointOrder(0, INT32_MAX, test2)<=0 || in TestCompare()
333 test1.compareCodePointOrder(0, INT32_MAX, test2, 0, INT32_MAX)<=0 || in TestCompare()
334 test1.compareCodePointOrderBetween(0, INT32_MAX, test2, 0, INT32_MAX)<=0 || in TestCompare()
335 test1.caseCompare(test2, U_FOLD_CASE_DEFAULT)<=0 in TestCompare()
457 UnicodeString test2; in TestExtract() local
463 test1.extract(11, 12, test2); in TestExtract()
494 if (test1.charAt((int32_t)(11 + i)) != test2.charAt(i)) { in TestExtract()
645 UnicodeString test2("eat SPAMburgers!"); in TestRemoveReplace() local
650 test1.replace(4, 4, test2, 4, 4); in TestRemoveReplace()
655 test1.replaceBetween(37, 42, test2, 4, 8); in TestRemoveReplace()
690 UnicodeString test2("test"); in TestSearching() local
711 (startPos = test1.indexOf(test2, startPos)) != -1 ? (++occurrences, startPos += 4) : 0) in TestSearching()
718 (startPos = test1.indexOf(test2, startPos)) != -1 ? (++occurrences, startPos += 4) : 0) in TestSearching()
727 …(startPos = test1.indexOf(test2, startPos, endPos - startPos)) != -1 ? (++occurrences, startPos +=… in TestSearching()
801 if(test1.lastIndexOf(test2)!=29) { in TestSearching()
805 …if(test1.lastIndexOf(test2, 15)!=29 || test1.lastIndexOf(test2, 29)!=29 || test1.lastIndexOf(test2… in TestSearching()
811 (startPos = test1.lastIndexOf(test2, 5, startPos - 5)) != -1 ? ++occurrences : 0) in TestSearching()
865 UnicodeString test2(" there"); in TestSpacePadding() local
876 returnVal = test2.padTrailing(15); in TestSpacePadding()
878 if (returnVal == FALSE || test2 != expectedValue) in TestSpacePadding()
879 errln("padTrailing() failed: expected \"" + expectedValue + "\", got \"" + test2 + "\"."); in TestSpacePadding()
896 test2.trim(); in TestSpacePadding()
898 if (test2 != expectedValue) in TestSpacePadding()
899 errln("trim() failed: expected \"" + expectedValue + "\", got \"" + test2 + "\"."); in TestSpacePadding()
911 returnVal = test2.truncate(15); in TestSpacePadding()
913 if (returnVal == TRUE || test2 != expectedValue) in TestSpacePadding()
914 errln("truncate() failed: expected \"" + expectedValue + "\", got \"" + test2 + "\"."); in TestSpacePadding()
926 UnicodeString test2("Now"); in TestPrefixAndSuffix() local
930 if (!test1.startsWith(test2) || !test1.startsWith(test2, 0, test2.length())) { in TestPrefixAndSuffix()
931 errln("startsWith() failed: \"" + test2 + "\" should be a prefix of \"" + test1 + "\"."); in TestPrefixAndSuffix()
941 if (test1.endsWith(test2)) { in TestPrefixAndSuffix()
942 errln("endsWith() failed: \"" + test2 + "\" shouldn't be a suffix of \"" + test1 + "\"."); in TestPrefixAndSuffix()
983 UnicodeString test2("potato"); in TestFindAndReplace() local
988 test1.findAndReplace(test2, test3); in TestFindAndReplace()
992 test1.findAndReplace(2, 32, test3, test2); in TestFindAndReplace()
1035 UnicodeString test2("This is a test"); in TestMiscellaneous() local
1099 test2=UnicodeString("This is another test.", ""); in TestMiscellaneous()
1101 if(q[test1.length()]!=0 || test1!=test2 || test2.compare(q, -1)!=0) { in TestMiscellaneous()
1147 test2=test1; // share the buffer in TestMiscellaneous()
1152 if(test2.length()!=36 || test2[5]!=0x66 || u_strlen(test2.getTerminatedBuffer())!=36) { in TestMiscellaneous()
1158 test2=test1; // share the buffer in TestMiscellaneous()
1163 if(test2.length()!=36 || test2[0]!=0x61 || u_strlen(test2.getTerminatedBuffer())!=36) { in TestMiscellaneous()
1436 UnicodeString test2("This is a test"); in TestBogus() local
1440 if (test1.isBogus() || test2.isBogus() || test3.isBogus()) { in TestBogus()
1450 if (test1.hashCode() != test2.hashCode() || test1.hashCode() == test3.hashCode()) { in TestBogus()
1477 test3.findAndReplace(UnicodeString((UChar)0x61), test2); in TestBogus()
1606 test2.setTo((UChar32)0x10005); in TestBogus()
1607 if(test2.insert(1, NULL, 1).length()!=2) { in TestBogus()
1633 test2.remove(); in TestBogus()
1634 if(test1>=test2 || !(test2>test1) || test1.compare(test2)>=0 || !(test2.compare(test1)>0)) { in TestBogus()