Home | History | Annotate | Download | only in intltest

Lines Matching refs:RegexTest

47 RegexTest::RegexTest()
52 RegexTest::~RegexTest()
58 void RegexTest::runIndexedTest( int32_t index, UBool exec, const char* &name, char* /*par*/ )
60 if (exec) logln("TestSuite RegexTest: ");
187 const char* RegexTest::extractToAssertBuf(const UnicodeString& message) {
213 #define REGEX_CHECK_STATUS {if (U_FAILURE(status)) {dataerrln("%s:%d: RegexTest failure. status=%s", \
216 #define REGEX_ASSERT(expr) {if ((expr)==FALSE) {errln("%s:%d: RegexTest failure: REGEX_ASSERT(%s) failed \n", __FILE__, __LINE__, #expr);};}
219 if (status!=errcode) {dataerrln("RegexTest failure at line %d. Expected status=%s, got %s", \
223 "RegexTest failure at line %d, from %d. status=%d\n",__LINE__, (line), status); }}
226 errln("RegexTest failure at line %d, from %d.", __LINE__, (line)); return;}}
228 #define REGEX_ASSERT_UNISTR(ustr,inv) {if (!(ustr==inv)) {errln("%s:%d: RegexTest failure: REGEX_ASSERT_UNISTR(%s,%s) failed \n", __FILE__, __LINE__, extractToAssertBuf(ustr),inv);};}
250 void RegexTest::assertUText(const char *expected, UText *actual, const char *file, int line) {
276 void RegexTest::assertUTextInvariant(const char *expected, UText *actual, const char *file, int line) {
360 UBool RegexTest::doRegexLMTest(const char *pat, const char *text, UBool looking, UBool match, int32_t line) {
372 dataerrln("RegexTest failure in RegexPattern::compile() at line %d. Status = %s",
382 errln("RegexTest failure in REPattern::matcher() at line %d. Status = %s\n",
390 errln("RegexTest failure in lookingAt() at line %d. Status = %s\n",
395 errln("RegexTest: wrong return from lookingAt() at line %d.\n", line);
402 errln("RegexTest failure in matches() at line %d. Status = %s\n",
407 errln("RegexTest: wrong return from matches() at line %d.\n", line);
421 UBool RegexTest::doRegexLMTestUTF8(const char *pat, const char *text, UBool looking, UBool match, int32_t line) {
435 dataerrln("RegexTest failure in RegexPattern::compile() at line %d (UTF8). Status = %s\n",
448 logln("RegexTest unable to convert input to UTF8 at line %d. Status = %s\n", line, u_errorName(status));
458 errln("RegexTest failure in REPattern::matcher() at line %d (UTF8). Status = %s\n",
466 errln("RegexTest failure in lookingAt() at line %d (UTF8). Status = %s\n",
471 errln("RegexTest: wrong return from lookingAt() at line %d (UTF8).\n", line);
478 errln("RegexTest
483 errln("RegexTest: wrong return from matches() at line %d (UTF8).\n", line);
512 void RegexTest::regex_err(const char *pat, int32_t errLine, int32_t errCol,
568 void RegexTest::Basic() {
722 void RegexTest::UTextBasic() {
753 void RegexTest::API_Match() {
918 errln("RegexTest failure at line %d, index %d. Expected %d, got %d\n",
924 errln("RegexTest failure at line %d index %d. Expected %d, got %d\n",
1316 void RegexTest::API_Replace() {
1503 void RegexTest::API_Pattern() {
1817 void RegexTest::API_Match_UTF8() {
1999 errln("RegexTest failure at %s:%d, index %d. Expected %d, got %d\n",
2005 errln("RegexTest failure at %s:%d index %d. Expected %d, got %d\n",
2387 void RegexTest::API_Replace_UTF8() {
2756 void RegexTest::API_Pattern_UTF8() {
3086 RegexTest::getPath(char buffer[2048], const char *filename) {
3099 void RegexTest::Extended() {
3277 void RegexTest::regex_find(const UnicodeString &pattern,
3727 void RegexTest::Errors() {
3792 UChar *RegexTest::ReadAndConvertFile(const char *fileName, int32_t &ulen,
3938 void RegexTest::PerlTests() {
4296 void RegexTest::PerlTestsUTF8() {
4690 void RegexTest::Bug6149() {
4711 RegexTest *test;
4731 void RegexTest::Callbacks() {
4805 RegexTest *test;
4823 void RegexTest::FindProgressCallbacks() {
4913 void RegexTest::PreAllocatedUTextCAPI () {
5110 void RegexTest::Bug7651() {
5142 void RegexTest::Bug7740() {
5159 void RegexTest::Bug8479() {
5178 void RegexTest::Bug7029() {
5202 void RegexTest::Bug9283() {
5219 void RegexTest::CheckInvBufSize() {