Home
last modified time | relevance | path

Searched refs:fmt3 (Results 1 – 10 of 10) sorted by relevance

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DRbnfTest.java133 RuleBasedNumberFormat fmt3 = new RuleBasedNumberFormat(durationInSecondsRules); in TestCoverage() local
135 if (fmt0.equals(fmt3)) { in TestCoverage()
138 if (!fmt3.equals(fmt3)) { in TestCoverage()
141 str = fmt3.toString(); in TestCoverage()
144 String[] names = fmt3.getRuleSetNames(); in TestCoverage()
147 fmt3.setDefaultRuleSet(null); in TestCoverage()
148 fmt3.setDefaultRuleSet("%%foo"); in TestCoverage()
156 fmt3.setDefaultRuleSet("%bogus"); in TestCoverage()
164 str = fmt3.format(2.3, names[0]); in TestCoverage()
166 str = fmt3.format(2.3, "%%foo"); in TestCoverage()
[all …]
DNumberFormatTest.java5461 DecimalFormat fmt3 = new DecimalFormat(quotedPattern);
5462 … assertEquals("Should be treated as double currency sign", "USD\u00a4 12.34", fmt3.format(12.34));
5464 String outQuotedPattern = fmt3.toPattern();
5770 NumberFormat fmt3 = NumberFormat.getCurrencyInstance(loc3);
5772 String actualCurrencyAmount = fmt3.format(curAmt);
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DRbnfTest.java130 RuleBasedNumberFormat fmt3 = new RuleBasedNumberFormat(durationInSecondsRules); in TestCoverage() local
132 if (fmt0.equals(fmt3)) { in TestCoverage()
135 if (!fmt3.equals(fmt3)) { in TestCoverage()
138 str = fmt3.toString(); in TestCoverage()
141 String[] names = fmt3.getRuleSetNames(); in TestCoverage()
144 fmt3.setDefaultRuleSet(null); in TestCoverage()
145 fmt3.setDefaultRuleSet("%%foo"); in TestCoverage()
153 fmt3.setDefaultRuleSet("%bogus"); in TestCoverage()
161 str = fmt3.format(2.3, names[0]); in TestCoverage()
163 str = fmt3.format(2.3, "%%foo"); in TestCoverage()
[all …]
DNumberFormatTest.java5458 DecimalFormat fmt3 = new DecimalFormat(quotedPattern);
5459 … assertEquals("Should be treated as double currency sign", "USD\u00a4 12.34", fmt3.format(12.34));
5461 String outQuotedPattern = fmt3.toPattern();
5767 NumberFormat fmt3 = NumberFormat.getCurrencyInstance(loc3);
5769 String actualCurrencyAmount = fmt3.format(curAmt);
/external/icu/icu4c/source/test/intltest/
Dscientificnumberformattertest.cpp84 LocalPointer<ScientificNumberFormatter> fmt3(fmt->clone()); in TestBasic() local
85 if (fmt3.isNull()) { in TestBasic()
90 fmt3->format(1.23456e-78, appendTo, status); in TestBasic()
Dreldatefmttest.cpp913 RelativeDateTimeFormatter fmt3(status); in TestEnglishCaps() local
917 fmt3 = fmt2; in TestEnglishCaps()
919 RunTest(fmt3, kEnglishCaps, UPRV_LENGTHOF(kEnglishCaps), "en caps"); in TestEnglishCaps()
1047 RelativeDateTimeFormatter fmt3(status); in TestGetters() local
1051 fmt3 = fmt2; in TestGetters()
1052 assertEquals("style", (int32_t)UDAT_STYLE_NARROW, fmt3.getFormatStyle()); in TestGetters()
1056 fmt3.getCapitalizationContext()); in TestGetters()
Dtmsgfmt.cpp1420 MessageFormat* fmt3 = NULL; in _testCopyConstructor2() local
1436 fmt3 = fmt1->clone(); in _testCopyConstructor2()
1439 if (fmt3 == NULL) { in _testCopyConstructor2()
1450 result = fmt3->format( &fargs, 1, resultStr, fp, status ); in _testCopyConstructor2()
1456 delete fmt3; in _testCopyConstructor2()
Ddtfmttst.cpp3715 SimpleDateFormat fmt3(UnicodeString("y-M-d"), Locale("en-us"), status); in Test6338() local
3720 str3 = fmt3.format(dt3, str3); in Test6338()
3723 UDate dt33 = fmt3.parse(str3, status); in Test6338()
3727 str33 = fmt3.format(dt33, str33); in Test6338()
/external/python/cpython2/Lib/test/
Dtest_struct.py59 fmt3 = '3c3b18x12h6i6l6f3d3?'
61 sz3 = struct.calcsize(fmt3)
/external/python/cpython3/Lib/test/
Dtest_struct.py44 fmt3 = '3c3b18x12h6i6l6f3d3?'
46 sz3 = struct.calcsize(fmt3)