Home
last modified time | relevance | path

Searched refs:testPattern (Results 1 – 15 of 15) sorted by relevance

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DPluralFormatTest.java32 private void helperTestRules(String localeIDs, String testPattern, Map<Integer,String> changes) { in helperTestRules() argument
54 log("test pattern: '" + testPattern + "'"); in helperTestRules()
57 PluralFormat plf = new PluralFormat(new ULocale(locales[i]), testPattern); in helperTestRules()
69 …errln(e.getMessage() + " locale: " + locales[i] + " pattern: '" + testPattern + "' " + System.curr… in helperTestRules()
77 String testPattern = "other{other}"; in TestOneFormLocales() local
80 helperTestRules(localeIDs, testPattern, changes); in TestOneFormLocales()
87 String testPattern = "one{one} other{other}"; in TestSingular1Locales() local
92 helperTestRules(localeIDs, testPattern, changes); in TestSingular1Locales()
98 String testPattern = "one{one} other{other}"; in TestSingular01Locales() local
102 helperTestRules(localeIDs, testPattern, changes); in TestSingular01Locales()
[all …]
DDateFormatTest.java3676 final String testPattern = "GGGG y MMMM d EEEE"; in TestCalendarType() local
3710 formatters[0].applyPattern(testPattern); in TestCalendarType()
3719 formatters[1].applyPattern(testPattern); in TestCalendarType()
3728 formatters[2].applyPattern(testPattern); in TestCalendarType()
3734 formatters[3] = new SimpleDateFormat(testPattern, testLocales[i]); in TestCalendarType()
3738 formatters[4] = new SimpleDateFormat(testPattern, dfs, testLocales[i]); in TestCalendarType()
DNumberFormatTest.java4607 String[] testPattern = { "00.####", "00.0", "00" };
4616 for (int i = 0; i < testPattern.length; i++) {
4617 parser.applyPattern(testPattern[i]);
4618 hasDecimalPoint = testPattern[i].contains(".");
4625 … TestFmwk.errln("Parsing " + value2Parse + " should have succeeded with " + testPattern[i] +
4632 …tFmwk.errln("Parsing " + value2ParseWithDecimal + " should have succeeded with " + testPattern[i] +
4640 … TestFmwk.errln("Parsing " + value2Parse + " should NOT have succeeded with " + testPattern[i] +
4649 …k.errln("Parsing " + value2ParseWithDecimal + " should NOT have succeeded with " + testPattern[i] +
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DPluralFormatTest.java35 private void helperTestRules(String localeIDs, String testPattern, Map<Integer,String> changes) { in helperTestRules() argument
57 log("test pattern: '" + testPattern + "'"); in helperTestRules()
60 PluralFormat plf = new PluralFormat(new ULocale(locales[i]), testPattern); in helperTestRules()
72 …errln(e.getMessage() + " locale: " + locales[i] + " pattern: '" + testPattern + "' " + System.curr… in helperTestRules()
80 String testPattern = "other{other}"; in TestOneFormLocales() local
83 helperTestRules(localeIDs, testPattern, changes); in TestOneFormLocales()
90 String testPattern = "one{one} other{other}"; in TestSingular1Locales() local
95 helperTestRules(localeIDs, testPattern, changes); in TestSingular1Locales()
101 String testPattern = "one{one} other{other}"; in TestSingular01Locales() local
105 helperTestRules(localeIDs, testPattern, changes); in TestSingular01Locales()
[all …]
DDateFormatTest.java3679 final String testPattern = "GGGG y MMMM d EEEE"; in TestCalendarType() local
3713 formatters[0].applyPattern(testPattern); in TestCalendarType()
3722 formatters[1].applyPattern(testPattern); in TestCalendarType()
3731 formatters[2].applyPattern(testPattern); in TestCalendarType()
3737 formatters[3] = new SimpleDateFormat(testPattern, testLocales[i]); in TestCalendarType()
3741 formatters[4] = new SimpleDateFormat(testPattern, dfs, testLocales[i]); in TestCalendarType()
DNumberFormatTest.java4610 String[] testPattern = { "00.####", "00.0", "00" };
4619 for (int i = 0; i < testPattern.length; i++) {
4620 parser.applyPattern(testPattern[i]);
4621 hasDecimalPoint = testPattern[i].contains(".");
4628 … TestFmwk.errln("Parsing " + value2Parse + " should have succeeded with " + testPattern[i] +
4635 …tFmwk.errln("Parsing " + value2ParseWithDecimal + " should have succeeded with " + testPattern[i] +
4643 … TestFmwk.errln("Parsing " + value2Parse + " should NOT have succeeded with " + testPattern[i] +
4652 …k.errln("Parsing " + value2ParseWithDecimal + " should NOT have succeeded with " + testPattern[i] +
/external/icu/icu4c/source/test/intltest/
Dplurfmts.cpp318 UnicodeString testPattern = UNICODE_STRING_SIMPLE("other{other}"); in pluralFormatLocaleTest() local
321 helperTestResults(oneRuleLocales, 8, testPattern, pluralResults); in pluralFormatLocaleTest()
332 testPattern = UNICODE_STRING_SIMPLE("one{one} other{other}"); in pluralFormatLocaleTest()
337 helperTestResults(singular1Locales, 56, testPattern, pluralResults); in pluralFormatLocaleTest()
343 testPattern = UNICODE_STRING_SIMPLE("one{one} other{other}"); in pluralFormatLocaleTest()
347 helperTestResults(singular01Locales, 4, testPattern, pluralResults); in pluralFormatLocaleTest()
352 testPattern = UNICODE_STRING_SIMPLE("zero{zero} one{one} other{other}"); in pluralFormatLocaleTest()
364 helperTestResults(zeroSingularLocales, 1, testPattern, pluralResults); in pluralFormatLocaleTest()
369 testPattern = UNICODE_STRING_SIMPLE("one{one} two{two} other{other}"); in pluralFormatLocaleTest()
375 helperTestResults(singularDualLocales, 1, testPattern, pluralResults); in pluralFormatLocaleTest()
[all …]
Dplurfmts.h48 UnicodeString& testPattern,
Dtchcfmt.cpp340 const char* testPattern = "0#none|1#one|2#many"; in TestComplexExample() local
341 ChoiceFormat form_pat( testPattern, status ); in TestComplexExample()
Dregextst.cpp2313 UText testPattern = UTEXT_INITIALIZER; in API_Match_UTF8() local
2315 regextst_openUTF8FromInvariant(&testPattern, ".*", -1, &status); in API_Match_UTF8()
2316 REGEX_VERBOSE_TEXT(&testPattern); in API_Match_UTF8()
2320 RegexMatcher m(&testPattern, &testText, 0, status); in API_Match_UTF8()
2367 utext_close(&testPattern); in API_Match_UTF8()
2375 UText testPattern = UTEXT_INITIALIZER; in API_Match_UTF8() local
2379 utext_openUTF8(&testPattern, str_, -1, &status); in API_Match_UTF8()
2382 RegexMatcher m1(&testPattern, &testText, 0, status); in API_Match_UTF8()
2390 utext_openUTF8(&testPattern, str_a, -1, &status); in API_Match_UTF8()
2391 RegexMatcher m2(&testPattern, &testText, 0, status); in API_Match_UTF8()
[all …]
Ddtptngts.cpp527 UnicodeString testPattern=gen->getBestPattern(UnicodeString("MMMMdd"), status); in testAPI() local
528 testPattern=gen->getBestPattern(UnicodeString("MMMddHmm"), status); in testAPI()
821 testPattern=test->getBestPattern(UnicodeString("MMMMdd"), status); in testAPI()
/external/icu/android_icu4j/testing/src/com/android/icu/test/util/regex/
DMatcherNativeTest.java257 public void testPattern() { in testPattern() method in MatcherNativeTest
423 String testPattern = "(abb)"; in testFind() local
425 Pattern pat = Pattern.compile(testPattern); in testFind()
437 testPattern = "(\\d{1,3})"; in testFind()
440 Pattern pat2 = Pattern.compile(testPattern); in testFind()
806 String testPattern = "^ro$"; in test_anchoringBounds() local
808 Pattern pat = Pattern.compile(testPattern); in test_anchoringBounds()
822 String testPattern = "and(?=roid)"; in test_transparentBounds() local
824 Pattern pat = Pattern.compile(testPattern); in test_transparentBounds()
834 testPattern = "and(?!roid)"; in test_transparentBounds()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dudatpg_test.c67 static const UChar testPattern[]={ 0x48, 0x48, 0x3a, 0x6d, 0x6d, 0 }; /* HH:mm */ variable
173 length = udatpg_getSkeleton(dtpg, testPattern, 5, result, 20, &errorCode); in TestUsage()
192 length = udatpg_getBaseSkeleton(dtpg, testPattern, 5, result, 20, &errorCode); in TestUsage()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUnicodeSetTest.java1750 String testPattern = testSet.toString(); in CheckRangeSpeed() local
1767 new UnicodeSet(testPattern); in CheckRangeSpeed()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DUnicodeSetTest.java1753 String testPattern = testSet.toString(); in CheckRangeSpeed() local
1770 new UnicodeSet(testPattern); in CheckRangeSpeed()