use of android.icu.text.RuleBasedNumberFormat in project j2objc by google.
the class RbnfRoundTripTest method TestFrenchSpelloutRT.
/**
* Perform an exhaustive round-trip test on the French spellout rules
*/
@Test
public void TestFrenchSpelloutRT() {
RuleBasedNumberFormat formatter = new RuleBasedNumberFormat(Locale.FRANCE, RuleBasedNumberFormat.SPELLOUT);
doTest(formatter, -12345678, 12345678);
}
use of android.icu.text.RuleBasedNumberFormat in project j2objc by google.
the class RbnfRoundTripTest method TestSwedishSpelloutRT.
/**
* Perform an exhaustive round-trip test on the Swedish spellout rules
*/
@Test
public void TestSwedishSpelloutRT() {
RuleBasedNumberFormat formatter = new RuleBasedNumberFormat(new Locale("sv", "SE", ""), RuleBasedNumberFormat.SPELLOUT);
doTest(formatter, 0, 12345678);
}
use of android.icu.text.RuleBasedNumberFormat in project j2objc by google.
the class RbnfRoundTripTest method TestDurationsRT.
/**
* Perform an exhaustive round-trip test on the duration-formatting rules
*/
@Test
public void TestDurationsRT() {
RuleBasedNumberFormat formatter = new RuleBasedNumberFormat(Locale.US, RuleBasedNumberFormat.DURATION);
doTest(formatter, 0, 12345678);
}
use of android.icu.text.RuleBasedNumberFormat in project j2objc by google.
the class RbnfRoundTripTest method TestGermanSpelloutRT.
/**
* Perform an exhaustive round-trip test on the German spellout rules
*/
@Test
public void TestGermanSpelloutRT() {
RuleBasedNumberFormat formatter = new RuleBasedNumberFormat(Locale.GERMANY, RuleBasedNumberFormat.SPELLOUT);
doTest(formatter, 0, 12345678);
}
use of android.icu.text.RuleBasedNumberFormat in project j2objc by google.
the class RbnfRoundTripTest method TestSpanishSpelloutRT.
/**
* Perform an exhaustive round-trip test on the Spanish spellout rules
*/
@Test
public void TestSpanishSpelloutRT() {
RuleBasedNumberFormat formatter = new RuleBasedNumberFormat(new Locale("es", "es", ""), RuleBasedNumberFormat.SPELLOUT);
doTest(formatter, -12345678, 12345678);
}
Aggregations