Lines Matching refs:RegexTest
55 RegexTest::RegexTest()
60 RegexTest::~RegexTest()
66 void RegexTest::runIndexedTest( int32_t index, UBool exec, const char* &name, char* /*par*/ )
68 if (exec) logln("TestSuite RegexTest: ");
215 const char* RegexTest::extractToAssertBuf(const UnicodeString& message) {
240 #define REGEX_CHECK_STATUS {if (U_FAILURE(status)) {dataerrln("%s:%d: RegexTest failure. status=%s", \
243 #define REGEX_ASSERT(expr) {if ((expr)==FALSE) {errln("%s:%d: RegexTest failure: REGEX_ASSERT(%s) failed \n", __FILE__, __LINE__, #expr);};}
246 if (status!=errcode) {dataerrln("RegexTest failure at line %d. Expected status=%s, got %s", \
250 "RegexTest failure at line %d, from %d. status=%d\n",__LINE__, (line), status); }}
253 errln("RegexTest failure at line %d, from %d.", __LINE__, (line)); return;}}
259 errln("%s:%d: RegexTest failure: REGEX_ASSERT_UNISTR(%s, %s) failed \n", \
282 void RegexTest::assertUText(const char *expected, UText *actual, const char *file, int line) {
308 void RegexTest::assertUTextInvariant(const char *expected, UText *actual, const char *file, int line) {
392 UBool RegexTest::doRegexLMTest(const char *pat, const char *text, UBool looking, UBool match, int32_t line) {
404 dataerrln("RegexTest failure in RegexPattern::compile() at line %d. Status = %s",
414 errln("RegexTest failure in REPattern::matcher() at line %d. Status = %s\n",
422 errln("RegexTest failure in lookingAt() at line %d. Status = %s\n",
427 errln("RegexTest: wrong return from lookingAt() at line %d.\n", line);
434 errln("RegexTest failure in matches() at line %d. Status = %s\n",
439 errln("RegexTest: wrong return from matches() at line %d.\n", line);
453 UBool RegexTest::doRegexLMTestUTF8(const char *pat, const char *text, UBool looking, UBool match, int32_t line) {
467 dataerrln("RegexTest failure in RegexPattern::compile() at line %d (UTF8). Status = %s\n",
480 logln("RegexTest unable to convert input to UTF8 at line %d. Status = %s\n", line, u_errorName(status));
490 errln("RegexTest failure in REPattern::matcher() at line %d (UTF8). Status = %s\n",
498 errln("RegexTest failure in lookingAt() at line %d (UTF8). Status = %s\n",
503 errln("RegexTest: wrong return from lookingAt() at line %d (UTF8).\n", line);
510 errln("RegexTest failure in matches() at line %d (UTF8). Status = %s\n",
515 errln("RegexTest: wrong return from matches() at line %d (UTF8).\n", line);
544 void RegexTest::regex_err(const char *pat, int32_t errLine, int32_t errCol,
600 void RegexTest::Basic() {
754 void RegexTest::UTextBasic() {
785 void RegexTest::API_Match() {
950 errln("RegexTest failure at line %d, index %d. Expected %d, got %d\n",
956 errln("RegexTest failure at line %d index %d. Expected %d, got %d\n",
1348 void RegexTest::API_Replace() {
1535 void RegexTest::API_Pattern() {
1849 void RegexTest::API_Match_UTF8() {
2031 errln("RegexTest failure at %s:%d, index %d. Expected %d, got %d\n",
2037 errln("RegexTest failure at %s:%d index %d. Expected %d, got %d\n",
2444 void RegexTest::API_Replace_UTF8() {
2815 void RegexTest::API_Pattern_UTF8() {
3176 RegexTest::getPath(char buffer[2048], const char *filename) {
3189 void RegexTest::Extended() {
3367 void RegexTest::regex_find(const UnicodeString &pattern,
3820 void RegexTest::Errors() {
3885 UChar *RegexTest::ReadAndConvertFile(const char *fileName, int32_t &ulen,
4031 void RegexTest::PerlTests() {
4389 void RegexTest::PerlTestsUTF8() {
4784 void RegexTest::Bug6149() {
4805 RegexTest *test;
4825 void RegexTest::Callbacks() {
4908 RegexTest *test;
4929 void RegexTest::FindProgressCallbacks() {
5019 void RegexTest::PreAllocatedUTextCAPI () {
5228 void RegexTest::NamedCapture() {
5452 void RegexTest::NamedCaptureLimits() {
5497 void RegexTest::Bug7651() {
5529 void RegexTest::Bug7740() {
5546 void RegexTest::Bug8479() {
5565 void RegexTest::Bug7029() {
5589 void RegexTest::Bug9283() {
5608 void RegexTest::CheckInvBufSize() {
5618 void RegexTest::Bug10459() {
5648 void RegexTest::TestCaseInsensitiveStarters() {
5679 void RegexTest::TestBug11049() {
5698 void RegexTest::TestCase11049(const char *pattern, const char *data, UBool expectMatch, int32_t lineNumber) {
5739 void RegexTest::TestBug11371() {
5783 void RegexTest::TestBug11480() {