Searched refs:formattedNum (Results 1 – 4 of 4) sorted by relevance
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
D | NumberFormatterApiTest.java | 1110 FormattedNumber formattedNum; in unitUsage() local 1124 formattedNum = formatter.format(321d); in unitUsage() 1128 … uTestCase + ", got outputUnit: \"" + formattedNum.getOutputUnit().getIdentifier() + "\"", in unitUsage() 1129 MeasureUnit.METER.equals(formattedNum.getOutputUnit())); in unitUsage() 1130 assertEquals(uTestCase, "300 m", formattedNum.toString()); in unitUsage() 1139 formattedNum, in unitUsage() 1161 formattedNum = formatter.format(321d); in unitUsage() 1163 … uTestCase + ", got outputUnit: \"" + formattedNum.getOutputUnit().getIdentifier() + "\"", in unitUsage() 1164 MeasureUnit.YARD.equals(formattedNum.getOutputUnit())); in unitUsage() 1165 assertEquals(uTestCase, "350 yd", formattedNum.toString()); in unitUsage() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/ |
D | NumberFormatterApiTest.java | 1113 FormattedNumber formattedNum; in unitUsage() local 1127 formattedNum = formatter.format(321d); in unitUsage() 1131 … uTestCase + ", got outputUnit: \"" + formattedNum.getOutputUnit().getIdentifier() + "\"", in unitUsage() 1132 MeasureUnit.METER.equals(formattedNum.getOutputUnit())); in unitUsage() 1133 assertEquals(uTestCase, "300 m", formattedNum.toString()); in unitUsage() 1142 formattedNum, in unitUsage() 1164 formattedNum = formatter.format(321d); in unitUsage() 1166 … uTestCase + ", got outputUnit: \"" + formattedNum.getOutputUnit().getIdentifier() + "\"", in unitUsage() 1167 MeasureUnit.YARD.equals(formattedNum.getOutputUnit())); in unitUsage() 1168 assertEquals(uTestCase, "350 yd", formattedNum.toString()); in unitUsage() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | numbertest_api.cpp | 1142 FormattedNumber formattedNum; in unitUsage() local 1146 formattedNum = in unitUsage() 1154 formattedNum = formatter.formatDouble(321, status); in unitUsage() 1157 … uTestCase + u", got outputUnit: \"" + formattedNum.getOutputUnit(status).getIdentifier() + "\"", in unitUsage() 1158 MeasureUnit::getMeter() == formattedNum.getOutputUnit(status)); in unitUsage() 1159 assertEquals(uTestCase, "300 m", formattedNum.toString(status)); in unitUsage() 1166 formattedNum, in unitUsage() 1188 formattedNum = formatter.formatDouble(321, status); in unitUsage() 1191 … uTestCase + u", got outputUnit: \"" + formattedNum.getOutputUnit(status).getIdentifier() + "\"", in unitUsage() 1192 MeasureUnit::getYard() == formattedNum.getOutputUnit(status)); in unitUsage() [all …]
|
D | numfmtst.cpp | 8459 UnicodeString formattedNum; in TestFormatCurrencyPlural() local 8460 fmt->format(11234.567, formattedNum, NULL, status); in TestFormatCurrencyPlural() 8461 assertEquals("", "11,234.57 US dollars", formattedNum); in TestFormatCurrencyPlural()
|