Home | History | Annotate | Download | only in intltest

Lines Matching full:test2

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