Lines Matching refs:test2

103     UnicodeString       test2(temp, 15);  in TestBasicManipulation()  local
106 if (test2 != expectedValue) in TestBasicManipulation()
107 errln("extract() failed: expected \"" + expectedValue + "\"\n,got \"" + test2 + "\""); in TestBasicManipulation()
109 test2 += " for me to go!\n"; in TestBasicManipulation()
111 if (test2 != expectedValue) in TestBasicManipulation()
112 errln("operator+=() failed: expected \"" + expectedValue + "\"\n,got \"" + test2 + "\""); in TestBasicManipulation()
116 if (test2.length() != 30) in TestBasicManipulation()
117 errln(UnicodeString("length() failed: expected 30, got ") + test2.length()); in TestBasicManipulation()
266 UnicodeString test2("this is a test"); in TestCompare() local
278 if (test1 != test2 || test1 == test3 || test1 == test4) in TestCompare()
282 if (test1 > test2 || test1 < test2 || !(test1 < test3) || !(test1 > test4) || in TestCompare()
289 if (!(test1 >= test2) || !(test1 <= test2) || !(test1 <= test3) || !(test1 >= test4)) in TestCompare()
293 if (test1.compare(test2) != 0 || test1.compare(test3) >= 0 || test1.compare(test4) <= 0) in TestCompare()
297 if(test1.compare(0, 14, test2) != 0 || in TestCompare()
298 test3.compare(0, 14, test2) != 0 || in TestCompare()
299 test4.compare(12, 14, test2) != 0 || in TestCompare()
304 … if (test2.compare(uniChars) != 0 || test3.compare(uniChars) <= 0 || test4.compare(uniChars) >= 0) in TestCompare()
308 if (test2.compare(chars) != 0 || test3.compare(chars) <= 0 || test4.compare(chars) >= 0) in TestCompare()
316 if (test1.compare(0, 14, test2, 0, 14) != 0 in TestCompare()
321 if (test1.compare(10, 4, test2, 0, 4) >= 0 in TestCompare()
327 …if (test1.compareBetween(0, 14, test2, 0, 14) != 0 || test1.compareBetween(0, 14, test3, 0, 14) !=… in TestCompare()
331 …if (test1.compareBetween(10, 14, test2, 0, 4) >= 0 || test1.compareBetween(10, 14, test3, 22, 31) … in TestCompare()
336 test2=test1; // share the buffer, length() too large for the stackBuffer in TestCompare()
337 test2.truncate(1); // change only the length, not the buffer in TestCompare()
338 if( test1==test2 || test1<=test2 || in TestCompare()
339 test1.compare(test2)<=0 || in TestCompare()
340 test1.compareCodePointOrder(test2)<=0 || in TestCompare()
341 test1.compareCodePointOrder(0, INT32_MAX, test2)<=0 || in TestCompare()
342 test1.compareCodePointOrder(0, INT32_MAX, test2, 0, INT32_MAX)<=0 || in TestCompare()
343 test1.compareCodePointOrderBetween(0, INT32_MAX, test2, 0, INT32_MAX)<=0 || in TestCompare()
344 test1.caseCompare(test2, U_FOLD_CASE_DEFAULT)<=0 in TestCompare()
466 UnicodeString test2; in TestExtract() local
472 test1.extract(11, 12, test2); in TestExtract()
503 if (test1.charAt((int32_t)(11 + i)) != test2.charAt(i)) { in TestExtract()
654 UnicodeString test2("eat SPAMburgers!"); in TestRemoveReplace() local
659 test1.replace(4, 4, test2, 4, 4); in TestRemoveReplace()
664 test1.replaceBetween(37, 42, test2, 4, 8); in TestRemoveReplace()
699 UnicodeString test2("test"); in TestSearching() local
720 (startPos = test1.indexOf(test2, startPos)) != -1 ? (++occurrences, startPos += 4) : 0) in TestSearching()
727 (startPos = test1.indexOf(test2, startPos)) != -1 ? (++occurrences, startPos += 4) : 0) in TestSearching()
736 …(startPos = test1.indexOf(test2, startPos, endPos - startPos)) != -1 ? (++occurrences, startPos +=… in TestSearching()
810 if(test1.lastIndexOf(test2)!=29) { in TestSearching()
814 …if(test1.lastIndexOf(test2, 15)!=29 || test1.lastIndexOf(test2, 29)!=29 || test1.lastIndexOf(test2 in TestSearching()
820 (startPos = test1.lastIndexOf(test2, 5, startPos - 5)) != -1 ? ++occurrences : 0) in TestSearching()
874 UnicodeString test2(" there"); in TestSpacePadding() local
885 returnVal = test2.padTrailing(15); in TestSpacePadding()
887 if (returnVal == FALSE || test2 != expectedValue) in TestSpacePadding()
888 errln("padTrailing() failed: expected \"" + expectedValue + "\", got \"" + test2 + "\"."); in TestSpacePadding()
905 test2.trim(); in TestSpacePadding()
907 if (test2 != expectedValue) in TestSpacePadding()
908 errln("trim() failed: expected \"" + expectedValue + "\", got \"" + test2 + "\"."); in TestSpacePadding()
920 returnVal = test2.truncate(15); in TestSpacePadding()
922 if (returnVal == TRUE || test2 != expectedValue) in TestSpacePadding()
923 errln("truncate() failed: expected \"" + expectedValue + "\", got \"" + test2 + "\"."); in TestSpacePadding()
935 UnicodeString test2("Now"); in TestPrefixAndSuffix() local
939 if (!test1.startsWith(test2) || !test1.startsWith(test2, 0, test2.length())) { in TestPrefixAndSuffix()
940 errln("startsWith() failed: \"" + test2 + "\" should be a prefix of \"" + test1 + "\"."); in TestPrefixAndSuffix()
950 if (test1.endsWith(test2)) { in TestPrefixAndSuffix()
951 errln("endsWith() failed: \"" + test2 + "\" shouldn't be a suffix of \"" + test1 + "\"."); in TestPrefixAndSuffix()
992 UnicodeString test2("potato"); in TestFindAndReplace() local
997 test1.findAndReplace(test2, test3); in TestFindAndReplace()
1001 test1.findAndReplace(2, 32, test3, test2); in TestFindAndReplace()
1044 UnicodeString test2("This is a test"); in TestMiscellaneous() local
1108 test2=UnicodeString("This is another test.", ""); in TestMiscellaneous()
1110 if(q[test1.length()]!=0 || test1!=test2 || test2.compare(q, -1)!=0) { in TestMiscellaneous()
1154 test2=test1; // share the buffer in TestMiscellaneous()
1159 if(test2.length()!=36 || test2[5]!=0x66 || u_strlen(test2.getTerminatedBuffer())!=36) { in TestMiscellaneous()
1165 test2=test1; // share the buffer in TestMiscellaneous()
1170 if(test2.length()!=36 || test2[0]!=0x61 || u_strlen(test2.getTerminatedBuffer())!=36) { in TestMiscellaneous()
1443 UnicodeString test2("This is a test"); in TestBogus() local
1447 if (test1.isBogus() || test2.isBogus() || test3.isBogus()) { in TestBogus()
1457 if (test1.hashCode() != test2.hashCode() || test1.hashCode() == test3.hashCode()) { in TestBogus()
1484 test3.findAndReplace(UnicodeString((UChar)0x61), test2); in TestBogus()
1616 test2.setTo((UChar32)0x10005); in TestBogus()
1617 if(test2.insert(1, nullptr, 1).length()!=2) { in TestBogus()
1643 test2.remove(); in TestBogus()
1644 if(test1>=test2 || !(test2>test1) || test1.compare(test2)>=0 || !(test2.compare(test1)>0)) { in TestBogus()