use of android.icu.text.RuleBasedNumberFormat in project j2objc by google.
the class RbnfRoundTripTest method TestEnglishSpelloutRT.
/**
* Perform an exhaustive round-trip test on the English spellout rules
*/
@Test
public void TestEnglishSpelloutRT() {
RuleBasedNumberFormat formatter = new RuleBasedNumberFormat(Locale.US, RuleBasedNumberFormat.SPELLOUT);
doTest(formatter, -12345678, 12345678);
}
use of android.icu.text.RuleBasedNumberFormat in project j2objc by google.
the class RbnfRoundTripTest method TestRussianSpelloutRT.
/**
* Perform an exhaustive round-trip test on the Russian spellout rules
*/
@Test
public void TestRussianSpelloutRT() {
RuleBasedNumberFormat formatter = new RuleBasedNumberFormat(new Locale("ru", "RU", ""), RuleBasedNumberFormat.SPELLOUT);
doTest(formatter, 0, 12345678);
}
use of android.icu.text.RuleBasedNumberFormat in project j2objc by google.
the class RbnfRoundTripTest method TestJapaneseSpelloutRT.
/**
* Perform an exhaustive round-trip test on the Japanese spellout rules
*/
@Test
public void TestJapaneseSpelloutRT() {
RuleBasedNumberFormat formatter = new RuleBasedNumberFormat(Locale.JAPAN, RuleBasedNumberFormat.SPELLOUT);
doTest(formatter, 0, 12345678);
}
use of android.icu.text.RuleBasedNumberFormat in project j2objc by google.
the class RbnfRoundTripTest method TestHebrewNumberingRT.
/**
* Perform an exhaustive round-trip test on the Greek spellout rules
*/
@Test
public void TestHebrewNumberingRT() {
RuleBasedNumberFormat formatter = new RuleBasedNumberFormat(new Locale("he", "IL", ""), RuleBasedNumberFormat.NUMBERING_SYSTEM);
formatter.setDefaultRuleSet("%hebrew");
doTest(formatter, 0, 12345678);
}
use of android.icu.text.RuleBasedNumberFormat in project j2objc by google.
the class RbnfRoundTripTest method TestDutchSpelloutRT.
/**
* Perform an exhaustive round-trip test on the Dutch spellout rules
*/
@Test
public void TestDutchSpelloutRT() {
RuleBasedNumberFormat formatter = new RuleBasedNumberFormat(new Locale("nl", "NL", ""), RuleBasedNumberFormat.SPELLOUT);
doTest(formatter, -12345678, 12345678);
}
Aggregations