9990000,
u"10M");
+ assertFormatSingle(
+ u"Compact in zh-Hant-HK",
+ u"compact-short",
+ NumberFormatter::with().notation(Notation::compactShort()),
+ Locale("zh-Hant-HK"),
+ 1e7,
+ u"10M");
+
+ assertFormatSingle(
+ u"Compact in zh-Hant",
+ u"compact-short",
+ NumberFormatter::with().notation(Notation::compactShort()),
+ Locale("zh-Hant"),
+ 1e7,
+ u"1000\u842C");
+
// NOTE: There is no API for compact custom data in C++
// and thus no "Compact Somali No Figure" test
}
9990000,
"10M");
+ assertFormatSingle(
+ "Compact in zh-Hant-HK",
+ "compact-short",
+ NumberFormatter.with().notation(Notation.compactShort()),
+ new ULocale("zh-Hant-HK"),
+ 1e7,
+ "10M");
+
+ assertFormatSingle(
+ "Compact in zh-Hant",
+ "compact-short",
+ NumberFormatter.with().notation(Notation.compactShort()),
+ new ULocale("zh-Hant"),
+ 1e7,
+ "1000\u842C");
+
Map<String, Map<String, String>> compactCustomData = new HashMap<String, Map<String, String>>();
Map<String, String> entry = new HashMap<String, String>();
entry.put("one", "Kun");