mirror of
https://gitee.com/openharmony/global_i18n
synced 2024-11-26 16:51:24 +00:00
补充接口覆盖测试用例
Signed-off-by: zhangdd_ewan <zhangdongdong50@huawei.com>
This commit is contained in:
parent
5aec14e653
commit
4da3b6665c
@ -541,11 +541,11 @@ HWTEST_F(IntlTest, IntlFuncTest0062, TestSize.Level1)
|
||||
std::string localeCode = LocaleEncode(localeTag);
|
||||
std::string targetCode = "58400008334651000314";
|
||||
EXPECT_EQ(localeCode, targetCode);
|
||||
std::vector<std::string> resultVec;
|
||||
std::vector<std::string> resultVec = {"zh", "en", "fr", "de", "zh-Hant", "fil"};
|
||||
const std::string separator = ",";
|
||||
std::string source = "zh,en,fr,de,zh-Hant,fil";
|
||||
std::string source;
|
||||
Merge(resultVec, separator, source);
|
||||
EXPECT_EQ(resultVec.size(), 6);
|
||||
EXPECT_EQ(source, "zh,en,fr,de,zh-Hant,fil");
|
||||
|
||||
std::string localeRule = "zh-Hans";
|
||||
DateTimeRule* dateTimeRule = new DateTimeRule(localeRule);
|
||||
|
Loading…
Reference in New Issue
Block a user