ICU-4184 adding UString init to null string search, made test active

X-SVN-Rev: 24521
This commit is contained in:
Brian Rower 2008-08-22 23:10:22 +00:00
parent 55c2f0939c
commit 3ff38d32ad

View File

@ -2276,7 +2276,10 @@ static void TestSearchForNull(void)
/* static const UChar var[(length)+1]=U_DECLARE_UTF16(cs) */ /* static const UChar var[(length)+1]=U_DECLARE_UTF16(cs) */
U_STRING_DECL (pattern, "0", 1); U_STRING_DECL (pattern, "0", 1);
U_STRING_DECL (text, "0IS 0 OK?", 8); U_STRING_DECL (text, "0IS 0 OK?", 9);
U_STRING_INIT (pattern, "0", 1);
U_STRING_INIT (text, "0IS 0 OK?", 9);
expectedPos = 0; expectedPos = 0;
expectedLen = 1; expectedLen = 1;
expectedNum = 2; expectedNum = 2;
@ -2369,7 +2372,7 @@ void addSearchTest(TestNode** root)
addTest(root, &TestNumeric, "tscoll/usrchtst/TestNumeric"); addTest(root, &TestNumeric, "tscoll/usrchtst/TestNumeric");
addTest(root, &TestDiacriticMatch, "tscoll/usrchtst/TestDiacriticMatch"); addTest(root, &TestDiacriticMatch, "tscoll/usrchtst/TestDiacriticMatch");
addTest(root, &TestForwardBackward, "tscoll/usrchtst/TestForwardBackward"); addTest(root, &TestForwardBackward, "tscoll/usrchtst/TestForwardBackward");
/*addTest(root, &TestSearchForNull, "tscoll/usrchtst/TestSearchForNull");*/ addTest(root, &TestSearchForNull, "tscoll/usrchtst/TestSearchForNull");
} }
#endif /* #if !UCONFIG_NO_COLLATION */ #endif /* #if !UCONFIG_NO_COLLATION */