Home | History | Annotate | Download | only in intltest

Lines Matching full:line

87 #define REGEX_CHECK_STATUS {if (U_FAILURE(status)) {dataerrln("RegexTest failure at line %d.  status=%s", \
90 #define REGEX_ASSERT(expr) {if ((expr)==FALSE) {errln("RegexTest failure at line %d.\n", __LINE__);};}
93 if (status!=errcode) {dataerrln("RegexTest failure at line %d. Expected status=%s, got %s", \
96 #define REGEX_CHECK_STATUS_L(line) {if (U_FAILURE(status)) {errln( \
97 "RegexTest failure at line %d, from %d. status=%d\n",__LINE__, (line), status); }}
99 #define REGEX_ASSERT_L(expr, line) {if ((expr)==FALSE) { \
100 errln("RegexTest failure at line %d, from %d.", __LINE__, (line)); return;}}
120 UBool RegexTest::doRegexLMTest(const char *pat, const char *text, UBool looking, UBool match, int32_t line) {
132 dataerrln("RegexTest failure in RegexPattern::compile() at line %d. Status = %s",
133 line, u_errorName(status));
136 if (line==376) { RegexPatternDump(REPattern);}
142 errln("RegexTest failure in REPattern::matcher() at line %d. Status = %s\n",
143 line, u_errorName(status));
150 errln("RegexTest failure in lookingAt() at line %d. Status = %s\n",
151 line, u_errorName(status));
155 errln("RegexTest: wrong return from lookingAt() at line %d.\n", line);
162 errln("RegexTest failure in matches() at line %d. Status = %s\n",
163 line, u_errorName(status));
167 errln("RegexTest: wrong return from matches() at line %d.\n", line);
190 // REGEX_ERR("pattern", expected error line, column, expected status);
193 #define REGEX_ERR(pat, line, col, status) regex_err(pat, line, col, status, __LINE__);
196 UErrorCode expectedStatus, int32_t line) {
209 dataerrln("Line %d: unexpected error %s compiling pattern.", line, u_errorName(status));
212 if (pe.line != errLine || pe.offset != errCol) {
213 errln("Line %d: incorrect line/offset from UParseError. Expected %d/%d; got %d/%d.\n",
214 line, errLine, errCol, pe.line, pe.offset);
360 REGEX_TESTLM("\\n", "\\u000a", TRUE, TRUE); // new line
544 errln("RegexTest failure at line %d, index %d. Expected %d, got %d\n",
550 errln("RegexTest failure at line %d index %d. Expected %d, got %d\n",
1466 // Loop over the test data file, once per line.
1471 errln("line
1481 // Parse the test line. Skip blank and comment only lines.
1487 // This line is a comment, or blank.
1492 // Pull out the pattern field, remove it from the test file line.
1499 errln("Bad pattern (missing quotes?) at test file line %d", lineNum);
1505 // Pull out the flags from the test file line.
1511 errln("Bad Match flag at line %d. Scanning %c\n",
1526 errln("Bad match string at test file line %d", lineNum);
1531 // The only thing left from the input line should be an optional trailing comment.
1535 errln("Line %d: unexpected characters at end of test line.", lineNum);
1558 // lineNumber is the source line in regextst.txt of the test.
1581 int32_t line) {
1644 errln("Line %d: error %s compiling pattern.", line, u_errorName(status));
1666 errln("Line %d: more than one digit flag. Scanning %d.", line, i);
1686 REGEX_CHECK_STATUS_L(line);
1690 REGEX_CHECK_STATUS_L(line);
1712 REGEX_ASSERT_L(groupStarts.size() == groupEnds.size(), line);
1724 REGEX_CHECK_STATUS_L(line);
1730 REGEX_CHECK_STATUS_L(line);
1766 errln("Error at line %d: Match expected, but none found.\n", line);
1774 errln("Error at line %d: No match expected, but one found.\n", line);
1783 errln("Error at line %d: incorrect start position for group %d. Expected %d, got %d",
1784 line, i, expectedStart, matcher->start(i, status));
1790 errln("Error at line %d: incorrect end position for group %d. Expected %d, got %d",
1791 line, i, expectedEnd, matcher->end(i, status));
1798 errln("Error at line %d: Expected %d capture groups, found %d.",
1799 line, groupStarts.size()-1, matcher->groupCount());
1805 errln("Error at line %d: requireEnd() returned TRUE. Expected FALSE", line);
1810 errln("Error at line %d: requireEnd() returned FALSE. Expected TRUE", line);
1815 errln("Error at line %d: hitEnd() returned TRUE. Expected FALSE", line);
1820 errln("Error at line %d: hitEnd() returned FALSE. Expected TRUE", line);
2021 // # Each line in that file is a separate test.
2083 // One line per match, capture group one is the desired data.
2093 // Regex to split a test file line into fields.
2130 // Main Loop for the Perl Tests, runs once per line from the
2139 // Get a line, break it into its fields, do the Perl
2142 UnicodeString line = lineMat->group(1, status);
2144 fieldPat->split(line, fields, 7, status);
2199 errln("line %d: ICU Error \"%s\"\n", lineNum, u_errorName(status));
2214 errln("line %d: Expected a pattern compile error, got success.", lineNum);
2227 // Replace any \n in the match string with an actual new-line char.
2244 errln("line %d: Expected %smatch, got %smatch",
2350 errln("Line %d: ICU Error \"%s\"", lineNum, u_errorName(status));
2365 err("Line %d: Incorrect perl expression results.", lineNum);