补充接口覆盖测试用例

Signed-off-by: zhangdd_ewan <zhangdongdong50@huawei.com>
This commit is contained in:
zhangdd_ewan 2024-11-22 18:12:48 +08:00
parent 5aec14e653
commit 4da3b6665c

View File

@ -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);