ICU-0105 API test coverage for RegexPattern::flags()

X-SVN-Rev: 10563
This commit is contained in:
Andy Heninger 2002-12-09 22:43:22 +00:00
parent cb90bfba0f
commit 7d3a78a4b2

View File

@ -368,7 +368,8 @@ void RegexTest::Basic() {
// //
#if 0 #if 0
{ {
REGEX_FIND("[{ab}]", "a"); //REGEX_TESTLM("X(.+)+X", "nomatch", TRUE, TRUE);
REGEX_FIND("(X([abc=X]+)+X)|(y[abc=]+)", "=XX====================");
} }
exit(1); exit(1);
#endif #endif
@ -878,6 +879,7 @@ void RegexTest::API_Pattern() {
RegexPattern *pat1a = RegexPattern::compile(re1, pe, status); RegexPattern *pat1a = RegexPattern::compile(re1, pe, status);
REGEX_ASSERT(*pat1a == *pat1); REGEX_ASSERT(*pat1a == *pat1);
REGEX_ASSERT(pat1a->flags() == 0);
#if 0 #if 0
// Compile with different flags should be not equal // Compile with different flags should be not equal
RegexPattern *pat1b = RegexPattern::compile(re1, UREGEX_CASE_INSENSITIVE, pe, status); RegexPattern *pat1b = RegexPattern::compile(re1, UREGEX_CASE_INSENSITIVE, pe, status);