Home | History | Annotate | Download | only in intltest

Lines Matching refs:testCase

169     const UXMLElement *testCase;
172 while((testCase = root->nextChildElement(tc)) != NULL) {
174 if (testCase->getTagName().compare("test-case") != 0) {
178 const UnicodeString *id = testCase->getAttribute("id");
192 const UnicodeString *strength = testCase->getAttribute("strength");
213 const UnicodeString *norm = testCase->getAttribute("norm");
223 const UnicodeString *alt = testCase->getAttribute("alternate_handling");
231 const UnicodeString *locale = testCase->getAttribute("locale");
246 n = testCase->getChildElement("pattern");
256 n = testCase->getChildElement("pre");
264 n = testCase->getChildElement("m");
274 n = testCase->getChildElement("post");
283 TEST_ASSERT(nodeCount == testCase->countChildren());
517 const UXMLElement *testCase;
520 while((testCase = root->nextChildElement(tc)) != NULL) {
522 if (testCase->getTagName().compare("test-case") != 0) {
526 const UnicodeString *id = testCase->getAttribute("id");
540 const UnicodeString *strength = testCase->getAttribute("strength");
561 const UnicodeString *norm = testCase->getAttribute("norm");
571 const UnicodeString *alt = testCase->getAttribute("alternate_handling");
579 const UnicodeString *locale = testCase->getAttribute("locale");
594 n = testCase->getChildElement("pattern");
604 n = testCase->getChildElement("pre");
612 n = testCase->getChildElement("m");
622 n = testCase->getChildElement("post");
631 TEST_ASSERT(nodeCount == testCase->countChildren());
1648 void append(UnicodeString &testCase, UnicodeString &alternate);
1651 UnicodeString &generateAlternative(const UnicodeString &testCase, UnicodeString &alternate);
1669 void StringSetMonkey::append(UnicodeString &testCase, UnicodeString &alternate)
1684 testCase.append(str);
1690 testCase.append(str);
1697 UnicodeString &StringSetMonkey::generateAlternative(const UnicodeString &testCase, UnicodeString &alternate)
1702 CEList ceList(coll, testCase, status);
1707 return alternate.append(testCase);
1715 return alternate.append(testCase);
1730 alternate.append(testCase);
1754 return alternate.append(testCase);
1757 static void generateTestCase(UCollator *coll, Monkey *monkeys[], int32_t monkeyCount, UnicodeString &testCase, UnicodeString &alternate)
1764 testCase.remove();
1766 monkeys[0]->append(testCase, alternate);
1771 monkeys[monkey]->append(testCase, alternate);
1774 const CEList ceTest(coll, testCase, status);
1971 int32_t SSearchTest::monkeyTestCase(UCollator *coll, const UnicodeString &testCase, const UnicodeString &pattern, const UnicodeString &altPattern,
1980 testCase.getBuffer(), testCase.length(),
1986 simpleSearch(coll, testCase, 0, pattern, expectedStart, expectedEnd);
2001 simpleSearch(coll, testCase, 0, altPattern, expectedStart, expectedEnd);
2022 int32_t SSearchTest::bmMonkeyTestCase(UCollator *coll, const UnicodeString &testCase, const UnicodeString &pattern, const UnicodeString &altPattern,
2033 simpleSearch(coll, testCase, 0, pattern, expectedStart, expectedEnd);
2035 bms->setTargetString(&testCase, status);
2049 simpleSearch(coll, testCase, 0, altPattern, expectedStart, expectedEnd);
2051 abms->setTargetString(&testCase, status);
2094 UnicodeString testCase;
2175 testCase.remove();
2176 testCase.append(prefix);
2177 testCase.append(/*alt*/pattern);
2180 notFoundCount += monkeyTestCase(coll, testCase, pattern, altPattern, "prefix + pattern", strengthNames[s], seed);
2182 testCase.append(suffix);
2185 notFoundCount += monkeyTestCase(coll, testCase, pattern, altPattern, "prefix + pattern + suffix", strengthNames[s], seed);
2187 testCase.remove();
2188 testCase.append(pattern);
2189 testCase.append(suffix);
2192 notFoundCount += monkeyTestCase(coll, testCase, pattern, altPattern, "pattern + suffix", strengthNames[s], seed);
2231 UnicodeString testCase;
2325 testCase.remove();
2326 testCase.append(prefix);
2327 testCase.append(/*alt*/pattern);
2330 notFoundCount += bmMonkeyTestCase(coll, testCase, pattern, altPattern, &pat, &alt, "prefix + pattern", strengthNames[s], seed);
2332 testCase.append(suffix);
2335 notFoundCount += bmMonkeyTestCase(coll, testCase, pattern, altPattern, &pat, &alt, "prefix + pattern + suffix", strengthNames[s], seed);
2337 testCase.remove();
2338 testCase.append(pattern);
2339 testCase.append(suffix);
2342 notFoundCount += bmMonkeyTestCase(coll, testCase, pattern, altPattern, &pat, &alt, "pattern + suffix", strengthNames[s], seed);