Home
last modified time | relevance | path

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

/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/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);
/third_party/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.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);
/third_party/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.cpp972 RelativeDateTimeFormatter fmt3(status); in TestEnglishCaps() local
976 fmt3 = fmt2; in TestEnglishCaps()
978 RunTest(fmt3, kEnglishCaps, UPRV_LENGTHOF(kEnglishCaps), "en caps"); in TestEnglishCaps()
1106 RelativeDateTimeFormatter fmt3(status); in TestGetters() local
1110 fmt3 = fmt2; in TestGetters()
1111 assertEquals("style", (int32_t)UDAT_STYLE_NARROW, fmt3.getFormatStyle()); in TestGetters()
1115 fmt3.getCapitalizationContext()); in TestGetters()
Dtmsgfmt.cpp1422 MessageFormat* fmt3 = NULL; in _testCopyConstructor2() local
1438 fmt3 = fmt1->clone(); in _testCopyConstructor2()
1441 if (fmt3 == NULL) { in _testCopyConstructor2()
1452 result = fmt3->format( &fargs, 1, resultStr, fp, status ); in _testCopyConstructor2()
1458 delete fmt3; in _testCopyConstructor2()
Ddtfmttst.cpp3729 SimpleDateFormat fmt3(UnicodeString("y-M-d"), Locale("en-us"), status); in Test6338() local
3734 str3 = fmt3.format(dt3, str3); in Test6338()
3737 UDate dt33 = fmt3.parse(str3, status); in Test6338()
3741 str33 = fmt3.format(dt33, str33); in Test6338()
/third_party/python/Lib/test/
Dtest_struct.py44 fmt3 = '3c3b18x12h6i6l6f3d3?'
46 sz3 = struct.calcsize(fmt3)