Skip to content

Commit

Permalink
ICU-20108 Adding tests for compact decimal format in zh-Hant and zh-H…
Browse files Browse the repository at this point in the history
…ant-HK.
  • Loading branch information
sffc committed Sep 22, 2018
1 parent 95c9c90 commit d495b88
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions icu4c/source/test/intltest/numbertest_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,22 @@ void NumberFormatterApiTest::notationCompact() {
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
}
Expand Down

0 comments on commit d495b88

Please sign in to comment.