Searched defs:errln (Results 1 - 3 of 3) sorted by relevance

/external/icu4c/test/iotest/
H A Diotest.cpp42 virtual void errln( const UnicodeString &message ) { function in class:DataDrivenLogger
/external/icu4c/test/intltest/
H A Dintltest.cpp488 IntlTest::gTest->errln( message );
658 this->errln("*** runIndexedTest needs to be overriden! ***");
834 void IntlTest::errln( const UnicodeString &message ) function in class:IntlTest
869 errln(message);
938 void IntlTest::errln(const char *fmt, ...) function in class:IntlTest
946 errln(UnicodeString(buffer, ""));
972 errln(UnicodeString(buffer, ""));
1362 major.errln("FAILURE: A test changed the default locale without resetting it.");
1627 errln("FAIL: assertTrue() failed: %s", message);
1637 errln("FAI
[all...]
H A Drbbitst.cpp40 errln("Failure in file %s, line %d", __FILE__, __LINE__);}}
254 test->errln("%s, tag mismatch. Test Line = %d, expected tag=%d, got %d",
282 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);
284 test->errln("%s Failed to find break at end of item from line %d. actual break: %d expected break: %d", heading, line, actual, expected);
396 errln("FAIL: expected break at %d, got %d\n", bounds1[i], pos);
402 errln("FAIL: break at %d, expected tag %d, got tag %d\n", pos, brkStatus[i], tag);
597 errln("Fail at file %s, line %d expected start of word at 4, got %d",
602 errln("Fail at file %s, line %d expected start of word at 4, got %d",
642 errln("Can't open test data. Path too long.");
677 errln("Erro
4248 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 < (int)(sizeof(strlist) / sizeof(char *)); loop ++) { u_unescape(strlist[loop], str, (int32_t)(sizeof(str) / sizeof(str[0]))); 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(char *params) { 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 (params) { UnicodeString p(params); 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...]

Completed in 83 milliseconds