Lines Matching refs:sets
846 errln("FAIL: couldn't construct test sets");
2860 * Sets typeName to an empty string if there is no such type.
3033 // sets to be tested; odd index=isComplement
3059 void UnicodeSetTest::testSpan(const UnicodeSetWithStrings *sets[4],
3073 // Even-numbered sets are original, uncomplemented sets.
3078 // Odd-numbered sets are complemented.
3084 limitsCount=getSpans(*sets[i], (UBool)(i&1),
3131 if(!sets[SLOW]->getSet().containsAll(string)) {
3136 if(!sets[FAST]->getSet().containsAll(string)) {
3142 if(!sets[SLOW]->getSet().containsNone(string)) {
3147 if(!sets[FAST]->getSet().containsNone(string)) {
3160 void UnicodeSetTest::testSpan(const UnicodeSetWithStrings *sets[4],
3166 testSpan(sets, s, length, isUTF16, whichSpans, expectLimits, expectCount, testName, index);
3195 // Test both UTF-16 and UTF-8 versions of span() etc. on the same sets and text,
3199 void UnicodeSetTest::testSpanBothUTFs(const UnicodeSetWithStrings *sets[4],
3209 testSpan(sets, s16, length16, TRUE, whichSpans, expectLimits, expectCount, testName, index);
3249 testSpan(sets, s8, length8, FALSE, whichSpans, expectLimits, expectCount, testName, index);
3275 void UnicodeSetTest::testSpanContents(const UnicodeSetWithStrings *sets[4], uint32_t whichSpans, const char *testName) {
3281 (!(sets[0]->getSet().contains(0xfffd) ?
3282 sets[0]->getSet().contains(0xd800, 0xdfff) :
3283 sets[0]->getSet().containsNone(0xd800, 0xdfff)) ||
3284 sets[0]->hasStringsWithSurrogates());
3297 testSpanBothUTFs(sets, s, length, localWhichSpans, testName, first);
3310 void UnicodeSetTest::testSpanUTF16String(const UnicodeSetWithStrings *sets[4], uint32_t whichSpans, const char *testName) {
3327 testSpan(sets, s, -1, TRUE, (whichSpans&~SPAN_UTF8), testName, 0);
3328 testSpan(sets, s, LENGTHOF(s)-1, TRUE, (whichSpans&~SPAN_UTF8), testName, 1);
3331 void UnicodeSetTest::testSpanUTF8String(const UnicodeSetWithStrings *sets[4], uint32_t whichSpans, const char *testName) {
3424 testSpan(sets, s, -1, FALSE, (whichSpans&~SPAN_UTF16), testName, 0);
3425 testSpan(sets, s, LENGTHOF(s)-1, FALSE, (whichSpans&~SPAN_UTF16), testName, 1);
3568 // Copies of above test sets and strings, but transliterated to have
3590 // On complement sets, span() and spanBack() get different results
3620 UnicodeSet *sets[SET_COUNT]={ NULL };
3630 // Create new test sets from this pattern.
3633 delete sets[j];
3636 sets[SLOW]=new UnicodeSet(UnicodeString(s, -1, US_INV).unescape(), errorCode);
3641 sets[SLOW_NOT]=new UnicodeSet(*sets[SLOW]);
3642 sets[SLOW_NOT]->complement();
3644 UnicodeSet *fast=new UnicodeSet(*sets[SLOW]);
3646 sets[FAST]=(UnicodeSet *)fast->clone();
3648 UnicodeSet *fastNot=new UnicodeSet(*sets[SLOW_NOT]);
3650 sets[FAST_NOT]=(UnicodeSet *)fastNot->clone();
3654 sets_with_str[j]=new UnicodeSetWithStrings(*sets[j]);
3742 delete sets[j];