ICU-4199 Timebomb POSIX charclass tests for now, until I understand what shoud be done.
X-SVN-Rev: 17128
This commit is contained in:
parent
d6d16eefcf
commit
4a800c38fa
@ -99,6 +99,7 @@ static const struct C99_Map {
|
||||
//{ "upper", u_isupper, UPROPS_SRC_CASE },
|
||||
|
||||
// MUST be in SORTED order
|
||||
{ "alnum", u_isalnum, UPROPS_SRC_CHAR },
|
||||
{ "blank", u_isblank, UPROPS_SRC_PROPSVEC },
|
||||
{ "cntrl", u_iscntrl, UPROPS_SRC_CHAR },
|
||||
{ "digit", u_isdigit, UPROPS_SRC_CHAR },
|
||||
@ -109,7 +110,7 @@ static const struct C99_Map {
|
||||
{ "title", u_istitle, UPROPS_SRC_CHAR },
|
||||
{ "xdigit", u_isxdigit, UPROPS_SRC_CHAR }
|
||||
};
|
||||
#define C99_COUNT (9)
|
||||
#define C99_COUNT (10)
|
||||
|
||||
// TEMPORARY: Remove when deprecated category code constructor is removed.
|
||||
static const UChar CATEGORY_NAMES[] = {
|
||||
|
@ -946,9 +946,9 @@ void UnicodeSetTest::TestPosixClasses() {
|
||||
TEST_ASSERT_SUCCESS(status);
|
||||
TEST_ASSERT(s1==s2);
|
||||
}
|
||||
UVersionInfo ICU_33 = {3, 3, 0, 0}; // Time Bomb for bug 4199
|
||||
UVersionInfo ICU_34 = {3, 4, 0, 0}; // Time Bomb for bug 4199
|
||||
{
|
||||
if (isICUVersionAtLeast(ICU_33)) { // Time Bomb Test
|
||||
if (isICUVersionAtLeast(ICU_34)) { // Time Bomb Test
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
UnicodeSet s1("[:alnum:]", status);
|
||||
UnicodeSet s2("[\\p{Alphabetic}\\p{DecimalNumber}]", status);
|
||||
@ -957,7 +957,7 @@ void UnicodeSetTest::TestPosixClasses() {
|
||||
}
|
||||
}
|
||||
{
|
||||
if (isICUVersionAtLeast(ICU_33)) { // Time Bomb Test
|
||||
if (isICUVersionAtLeast(ICU_34)) { // Time Bomb Test
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
UnicodeSet s1("[:space:]", status);
|
||||
UnicodeSet s2("\\p{Whitespace}", status);
|
||||
@ -974,7 +974,7 @@ void UnicodeSetTest::TestPosixClasses() {
|
||||
TEST_ASSERT(s1==s2);
|
||||
}
|
||||
{
|
||||
if (isICUVersionAtLeast(ICU_33)) { // Time Bomb Test
|
||||
if (isICUVersionAtLeast(ICU_34)) { // Time Bomb Test
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
UnicodeSet s1("[:cntrl:]", status);
|
||||
TEST_ASSERT_SUCCESS(status);
|
||||
@ -984,19 +984,16 @@ void UnicodeSetTest::TestPosixClasses() {
|
||||
}
|
||||
}
|
||||
{
|
||||
if (isICUVersionAtLeast(ICU_33)) { // Time Bomb Test
|
||||
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
UnicodeSet s1("[:graph:]", status);
|
||||
TEST_ASSERT_SUCCESS(status);
|
||||
UnicodeSet s2("[^\\p{Whitespace}\\p{Control}\\p{Format}"
|
||||
"\\p{Surrogate}\\p{Unassigned}]", status);
|
||||
TEST_ASSERT_SUCCESS(status);
|
||||
TEST_ASSERT(s1==s2);
|
||||
}
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
UnicodeSet s1("[:graph:]", status);
|
||||
TEST_ASSERT_SUCCESS(status);
|
||||
UnicodeSet s2("[^\\p{Whitespace}\\p{Control}\\p{Format}"
|
||||
"\\p{Surrogate}\\p{Unassigned}]", status);
|
||||
TEST_ASSERT_SUCCESS(status);
|
||||
TEST_ASSERT(s1==s2);
|
||||
}
|
||||
{
|
||||
if (isICUVersionAtLeast(ICU_33)) { // Time Bomb Test
|
||||
if (isICUVersionAtLeast(ICU_34)) { // Time Bomb Test
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
UnicodeSet s1("[:print:]", status);
|
||||
TEST_ASSERT_SUCCESS(status);
|
||||
|
Loading…
Reference in New Issue
Block a user