mirror of
https://gitee.com/openharmony/global_i18n
synced 2024-11-23 15:10:32 +00:00
commit
fa7bcb762e
@ -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;
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user