ICU-0105 API test coverage for RegexPattern::flags()
X-SVN-Rev: 10563
This commit is contained in:
parent
cb90bfba0f
commit
7d3a78a4b2
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user