!656 TDD错误修改

Merge pull request !656 from LY/master
This commit is contained in:
openharmony_ci 2024-04-01 06:35:02 +00:00 committed by Gitee
commit fa7bcb762e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 8 additions and 4 deletions

View File

@ -482,7 +482,9 @@ HWTEST_F(IntlTest, IntlFuncTest011, TestSize.Level1)
HWTEST_F(IntlTest, IntlFuncTest0012, TestSize.Level1)
{
string locale = "en";
map<string, string> options = {};
map<string, string> options = {
{ "dateStyle", "short" }
};
vector<string> locales;
locales.push_back(locale);
std::string expects = "3/11/82";
@ -1491,7 +1493,9 @@ HWTEST_F(IntlTest, IntlFuncTest0036, TestSize.Level1)
{
vector<string> locales;
locales.push_back("en-US");
map<string, string> options;
map<string, string> options = {
{ "dateStyle", "short" }
};
DateTimeFormat *formatter = new DateTimeFormat(locales, options);
int64_t milliseconds = 123456789;

View File

@ -758,8 +758,8 @@ HWTEST_F(IntlTest, IntlFuncTest0068, TestSize.Level1)
EXPECT_EQ(dayPeriodRes, "10 mat.");
EXPECT_EQ(timeZoneNameRes, "18 h UTC+8");
} else if (deviceType == "tablet" || deviceType == "2in1" || deviceType == "tv" || deviceType == "pc") {
EXPECT_EQ(dayPeriodRes, "10 matin");
EXPECT_EQ(timeZoneNameRes, "18 h heure normale de la chine");
EXPECT_EQ(dayPeriodRes, "10\xE2\x80\xAF" "du matin");
EXPECT_EQ(timeZoneNameRes, "18 h heure normale de la Chine");
} else {
EXPECT_EQ(dayPeriodRes, "10\xE2\x80\xAFmatin");
EXPECT_EQ(timeZoneNameRes, "18 h UTC+8");