mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-10268 Add additional test to handle MeasureFormat.formatMeasures() with zero and one arg.
X-SVN-Rev: 34802
This commit is contained in:
parent
6f82c4b2d3
commit
3b6a40b645
1 changed files with 13 additions and 1 deletions
|
@ -164,10 +164,22 @@ public class MeasureUnitTest extends TestFmwk {
|
|||
}
|
||||
}
|
||||
|
||||
public void testFormatMeasureSingleArg() {
|
||||
public void testFormatSingleArg() {
|
||||
MeasureFormat mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.WIDE);
|
||||
assertEquals("", "5 meters", mf.format(new Measure(5, MeasureUnit.METER)));
|
||||
}
|
||||
|
||||
public void testFormatMeasuresZeroArg() {
|
||||
MeasureFormat mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.WIDE);
|
||||
assertEquals("", "", mf.formatMeasures());
|
||||
}
|
||||
|
||||
public void testFormatMeasuresOneArg() {
|
||||
MeasureFormat mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.WIDE);
|
||||
assertEquals("", "5 meters", mf.formatMeasures(new Measure(5, MeasureUnit.METER)));
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void testMultiples() {
|
||||
ULocale russia = new ULocale("ru");
|
||||
|
|
Loading…
Add table
Reference in a new issue