Home | History | Annotate | Download | only in intltest

Lines Matching refs:sets

815         errln("FAIL: couldn't construct test sets");
2823 * Sets typeName to an empty string if there is no such type.
2996 // sets to be tested; odd index=isComplement
3022 void UnicodeSetTest::testSpan(const UnicodeSetWithStrings *sets[4],
3036 // Even-numbered sets are original, uncomplemented sets.
3041 // Odd-numbered sets are complemented.
3047 limitsCount=getSpans(*sets[i], (UBool)(i&1),
3094 if(!sets[SLOW]->getSet().containsAll(string)) {
3099 if(!sets[FAST]->getSet().containsAll(string)) {
3105 if(!sets[SLOW]->getSet().containsNone(string)) {
3110 if(!sets[FAST]->getSet().containsNone(string)) {
3123 void UnicodeSetTest::testSpan(const UnicodeSetWithStrings *sets[4],
3129 testSpan(sets, s, length, isUTF16, whichSpans, expectLimits, expectCount, testName, index);
3158 // Test both UTF-16 and UTF-8 versions of span() etc. on the same sets and text,
3162 void UnicodeSetTest::testSpanBothUTFs(const UnicodeSetWithStrings *sets[4],
3172 testSpan(sets, s16, length16, TRUE, whichSpans, expectLimits, expectCount, testName, index);
3212 testSpan(sets, s8, length8, FALSE, whichSpans, expectLimits, expectCount, testName, index);
3238 void UnicodeSetTest::testSpanContents(const UnicodeSetWithStrings *sets[4], uint32_t whichSpans, const char *testName) {
3244 (!(sets[0]->getSet().contains(0xfffd) ?
3245 sets[0]->getSet().contains(0xd800, 0xdfff) :
3246 sets[0]->getSet().containsNone(0xd800, 0xdfff)) ||
3247 sets[0]->hasStringsWithSurrogates());
3260 testSpanBothUTFs(sets, s, length, localWhichSpans, testName, first);
3273 void UnicodeSetTest::testSpanUTF16String(const UnicodeSetWithStrings *sets[4], uint32_t whichSpans, const char *testName) {
3290 testSpan(sets, s, -1, TRUE, (whichSpans&~SPAN_UTF8), testName, 0);
3291 testSpan(sets, s, LENGTHOF(s)-1, TRUE, (whichSpans&~SPAN_UTF8), testName, 1);
3294 void UnicodeSetTest::testSpanUTF8String(const UnicodeSetWithStrings *sets[4], uint32_t whichSpans, const char *testName) {
3387 testSpan(sets, s, -1, FALSE, (whichSpans&~SPAN_UTF16), testName, 0);
3388 testSpan(sets, s, LENGTHOF(s)-1, FALSE, (whichSpans&~SPAN_UTF16), testName, 1);
3531 // Copies of above test sets and strings, but transliterated to have
3553 // On complement sets, span() and spanBack() get different results
3583 UnicodeSet *sets[SET_COUNT]={ NULL };
3593 // Create new test sets from this pattern.
3596 delete sets[j];
3599 sets[SLOW]=new UnicodeSet(UnicodeString(s, -1, US_INV).unescape(), errorCode);
3604 sets[SLOW_NOT]=new UnicodeSet(*sets[SLOW]);
3605 sets[SLOW_NOT]->complement();
3607 UnicodeSet *fast=new UnicodeSet(*sets[SLOW]);
3609 sets[FAST]=(UnicodeSet *)fast->clone();
3611 UnicodeSet *fastNot=new UnicodeSet(*sets[SLOW_NOT]);
3613 sets[FAST_NOT]=(UnicodeSet *)fastNot->clone();
3617 sets_with_str[j]=new UnicodeSetWithStrings(*sets[j]);
3705 delete sets[j];