/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/ |
H A D | AbstractTestLog.java | 80 public static final void errln(String message) { method in class:AbstractTestLog
|
H A D | TestBoilerplate.java | 53 errln("Equality/Null invariant fails: " + i); 56 errln("Self-Equality invariant fails: " + i); 63 errln("Clone/Mutability invariant fails: " + i); 67 errln("Clone/Equality invariant fails: " + i); 81 if (!b.equals(a)) errln("Equality/Symmetry",i, j); 82 if (aHash != bHash) errln("Equality/Hash",i, j); 84 errln("Equality/Equivalence",i, j); 88 private void errln(String title, int i, int j) { method in class:TestBoilerplate 89 if (j < 0) errln("Clone/" + title + "invariant fails: " + i); 90 else errln(titl [all...] |
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/ |
H A D | AbstractTestLog.java | 79 public static final void errln(String message) { method in class:AbstractTestLog
|
H A D | TestBoilerplate.java | 52 errln("Equality/Null invariant fails: " + i); 55 errln("Self-Equality invariant fails: " + i); 62 errln("Clone/Mutability invariant fails: " + i); 66 errln("Clone/Equality invariant fails: " + i); 80 if (!b.equals(a)) errln("Equality/Symmetry",i, j); 81 if (aHash != bHash) errln("Equality/Hash",i, j); 83 errln("Equality/Equivalence",i, j); 87 private void errln(String title, int i, int j) { method in class:TestBoilerplate 88 if (j < 0) errln("Clone/" + title + "invariant fails: " + i); 89 else errln(titl [all...] |
/external/icu/icu4c/source/test/iotest/ |
H A D | iotest.cpp | 45 virtual void errln( const UnicodeString &message ) { function in class:DataDrivenLogger
|
/external/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/ |
H A D | CheckTags.java | 273 void errln(String msg) { method in class:CheckTags 282 errln(msg + tag.toString() + " [" + tag.position() + "]"); 385 errln("unknown kind: " + kind); 458 errln("unknown index: " + ix); 462 errln("missing required tag [" + doc.position() + "]"); 465 errln("internal tag missing deprecated"); 468 errln("draft tag missing deprecated or provisional"); 471 errln("obsolete tag missing deprecated");
|
/external/icu/icu4c/source/test/intltest/ |
H A D | intltest.cpp | 530 IntlTest::gTest->errln( message ); 710 this->errln("*** runIndexedTest needs to be overriden! ***"); 891 void IntlTest::errln( const UnicodeString &message ) function in class:IntlTest 932 errln(message); 1038 void IntlTest::errln(const char *fmt, ...) function in class:IntlTest 1046 errln(UnicodeString(buffer, (const char *)NULL)); 1072 errln(UnicodeString(buffer, (const char *)NULL)); 1503 major.errln("FAILURE: A test changed the default locale without resetting it."); 1864 errln("%s:%d: FAIL: assertTrue() failed: %s", file, line, message); 1874 errln("FAI [all...] |
H A D | rbbitst.cpp | 50 errln("Failure in file %s, line %d", __FILE__, __LINE__);}} 211 test->errln("%s, tag mismatch. Test Line = %d, expected tag=%d, got %d", 239 test->errln("%s unexpected break at offset %d in test item from line %d. actual break: %d expected break: %d", heading, o, line, actual, expected); 241 test->errln("%s Failed to find break at end of item from line %d. actual break: %d expected break: %d", heading, line, actual, expected); 298 errln("%s:%d expected break at %d, got %d\n", __FILE__, __LINE__, bounds1[i], pos); 304 errln("%s:%d break at %d, expected tag %d, got tag %d\n", __FILE__, __LINE__, pos, brkStatus[i], tag); 380 errln("Fail at file %s, line %d expected start of word at 4, got %d", 385 errln("Fail at file %s, line %d expected start of word at 4, got %d", 512 errln("testFollowing(): iterator returned DONE prematurely."); 554 errln("testPrecedin 4049 TEST_ASSERT(expectedcount < EXPECTEDSIZE); return; } expected[expectedcount ++] = i; } testBreakBoundPreceding(this, ustr, bi, expected, expectedcount); } delete bi; } void RBBITest::TestSentBreaks(void) { Locale locale(�); UErrorCode status = U_ZERO_ERROR; BreakIterator *bi = BreakIterator::createSentenceInstance(locale, status); UChar str[200]; static const char *strlist[] = { �, �, �, �, �, �, �, �, �, �, � � � �, � � � � � � }; int loop; if (U_FAILURE(status)) { errcheckln(status, �, u_errorName(status)); return; } for (loop = 0; loop < UPRV_LENGTHOF(strlist); loop ++) { u_unescape(strlist[loop], str, UPRV_LENGTHOF(str)); UnicodeString ustr(str); RBBISentMonkey monkey; if (U_FAILURE(monkey.deferredStatus)) { continue; } const int EXPECTEDSIZE = 50; int expected[EXPECTEDSIZE]; int expectedcount = 0; monkey.setText(ustr); int i; for (i = 0; i != BreakIterator::DONE; i = monkey.next(i)) { if (expectedcount >= EXPECTEDSIZE) { TEST_ASSERT(expectedcount < EXPECTEDSIZE); return; } expected[expectedcount ++] = i; } testBreakBoundPreceding(this, ustr, bi, expected, expectedcount); } delete bi; } void RBBITest::TestMonkey() { UErrorCode status = U_ZERO_ERROR; int32_t loopCount = 500; int32_t seed = 1; UnicodeString breakType = �; Locale locale(�); UBool useUText = FALSE; if (quick == FALSE) { loopCount = 10000; } if (fTestParams) { UnicodeString p(fTestParams); loopCount = getIntParam(�, p, loopCount); seed = getIntParam(�, p, seed); RegexMatcher m(�, p, 0, status); if (m.find()) { breakType = m.group(1, status); m.reset(); p = m.replaceFirst(�, status); } RegexMatcher u(�, p, 0, status); if (u.find()) { useUText = TRUE; u.reset(); p = u.replaceFirst(�, status); } if (RegexMatcher(UNICODE_STRING_SIMPLE(�), p, 0, status).find()) { char buf[100]; p.extract(buf, sizeof(buf), NULL, status); buf[sizeof(buf)-1] = 0; errln(�, buf); return; } } if (breakType == � || breakType == �) { RBBICharMonkey m; BreakIterator *bi = BreakIterator::createCharacterInstance(locale, status); if (U_SUCCESS(status)) { RunMonkey(bi, m, �, seed, loopCount, useUText); if (breakType == � && useUText==FALSE) { RunMonkey(bi, m, �, seed, loopCount, TRUE); } } else { errcheckln(status, �, u_errorName(status)); } delete bi; } if (breakType == � || breakType == �) { logln(�); RBBIWordMonkey m; BreakIterator *bi = BreakIterator::createWordInstance(locale, status); if (U_SUCCESS(status)) { RunMonkey(bi, m, �, seed, loopCount, useUText); } else { errcheckln(status, �, u_errorName(status)); } delete bi; } if (breakType == � || breakType == �) { logln(�); RBBILineMonkey m; BreakIterator *bi = BreakIterator::createLineInstance(locale, status); if (loopCount >= 10) { loopCount = loopCount / 5; } if (U_SUCCESS(status)) { RunMonkey(bi, m, �, seed, loopCount, useUText); } else { errcheckln(status, �, u_errorName(status)); } delete bi; } if (breakType == � || breakType == � ) { logln(�); RBBISentMonkey m; BreakIterator *bi = BreakIterator::createSentenceInstance(locale, status); if (loopCount >= 10) argument [all...] |