Skip to content

Commit cf73e48

Browse files
Arvind OrugantiCopilot
andcommitted
Port English AM/PM spacing test expectations
Align ICU test expectations with MS English locale data that preserves regular spaces before AM/PM markers. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 872bf9f commit cf73e48

15 files changed

Lines changed: 125 additions & 113 deletions

File tree

icu/icu4c/source/test/cintltst/ccaltst.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ static void TestGetSetDateAPI(void)
724724

725725
/*Testing if setDate works fine */
726726
log_verbose("\nTesting the ucal_setDate() function \n");
727-
u_strcpy(temp, u"Dec 17, 1971, 11:05:28\u202FPM");
727+
u_strcpy(temp, u"Dec 17, 1971, 11:05:28 PM");
728728
ucal_setDate(caldef,1971, UCAL_DECEMBER, 17, &status);
729729
if(U_FAILURE(status)){
730730
log_err("error in setting the calendar date : %s\n", u_errorName(status));
@@ -755,7 +755,7 @@ static void TestGetSetDateAPI(void)
755755

756756
/*Testing if setDateTime works fine */
757757
log_verbose("\nTesting the ucal_setDateTime() function \n");
758-
u_strcpy(temp, u"May 3, 1972, 4:30:42\u202FPM");
758+
u_strcpy(temp, u"May 3, 1972, 4:30:42 PM");
759759
ucal_setDateTime(caldef,1972, UCAL_MAY, 3, 16, 30, 42, &status);
760760
if(U_FAILURE(status)){
761761
log_err("error in setting the calendar date : %s\n", u_errorName(status));

icu/icu4c/source/test/cintltst/cdateintervalformattest.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -248,15 +248,15 @@ static const ExpectPosAndFormat exp_en_yyMMddHHmmss[kNumDeltas] = {
248248
};
249249

250250
static const ExpectPosAndFormat exp_en_yMMMdhmmssz[kNumDeltas] = {
251-
{ 16, 18, "Nov 20, 2014, 9:00:00\\u202FAM GMT" },
252-
{ 16, 18, "Nov 20, 2014, 9:00:00\\u202FAM GMT" },
253-
{ 16, 18, "Nov 20, 2014, 9:00:00\\u202FAM GMT\\u2009\\u2013\\u20099:00:20\\u202FAM GMT" },
254-
{ 16, 18, "Nov 20, 2014, 9:00:00\\u202FAM GMT\\u2009\\u2013\\u20099:20:00\\u202FAM GMT" },
255-
{ 16, 18, "Nov 20, 2014, 9:00:00\\u202FAM GMT\\u2009\\u2013\\u200911:00:00\\u202FAM GMT" },
256-
{ 16, 18, "Nov 20, 2014, 9:00:00\\u202FAM GMT\\u2009\\u2013\\u20099:00:00\\u202FPM GMT" },
257-
{ 16, 18, "Nov 20, 2014, 9:00:00\\u202FAM GMT\\u2009\\u2013\\u2009Nov 28, 2014, 9:00:00\\u202FAM GMT" },
258-
{ 16, 18, "Nov 20, 2014, 9:00:00\\u202FAM GMT\\u2009\\u2013\\u2009Dec 6, 2014, 9:00:00\\u202FAM GMT" },
259-
{ 16, 18, "Nov 20, 2014, 9:00:00\\u202FAM GMT\\u2009\\u2013\\u2009Feb 28, 2015, 9:00:00\\u202FAM GMT" }
251+
{ 16, 18, "Nov 20, 2014, 9:00:00 AM GMT" },
252+
{ 16, 18, "Nov 20, 2014, 9:00:00 AM GMT" },
253+
{ 16, 18, "Nov 20, 2014, 9:00:00 AM GMT\\u2009\\u2013\\u20099:00:20 AM GMT" },
254+
{ 16, 18, "Nov 20, 2014, 9:00:00 AM GMT\\u2009\\u2013\\u20099:20:00 AM GMT" },
255+
{ 16, 18, "Nov 20, 2014, 9:00:00 AM GMT\\u2009\\u2013\\u200911:00:00 AM GMT" },
256+
{ 16, 18, "Nov 20, 2014, 9:00:00 AM GMT\\u2009\\u2013\\u20099:00:00 PM GMT" },
257+
{ 16, 18, "Nov 20, 2014, 9:00:00 AM GMT\\u2009\\u2013\\u2009Nov 28, 2014, 9:00:00 AM GMT" },
258+
{ 16, 18, "Nov 20, 2014, 9:00:00 AM GMT\\u2009\\u2013\\u2009Dec 6, 2014, 9:00:00 AM GMT" },
259+
{ 16, 18, "Nov 20, 2014, 9:00:00 AM GMT\\u2009\\u2013\\u2009Feb 28, 2015, 9:00:00 AM GMT" }
260260
};
261261

262262
static const ExpectPosAndFormat exp_ja_yyMMddHHmm[kNumDeltas] = {

icu/icu4c/source/test/cintltst/cdattst.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ static void TestDateFormat(void)
176176

177177
/*Testing udat_format()*/
178178
log_verbose("\nTesting the udat_format() function of date format\n");
179-
u_strcpy(temp, u"7/10/96, 4:05\u202FPM");
179+
u_strcpy(temp, u"7/10/96, 4:05 PM");
180180
/*format using def */
181181
resultlength=0;
182182
resultlengthneeded=udat_format(def, d, NULL, resultlength, NULL, &status);
@@ -245,7 +245,7 @@ static void TestDateFormat(void)
245245

246246
/*Testing parsing using udat_parse()*/
247247
log_verbose("\nTesting parsing using udat_parse()\n");
248-
u_strcpy(temp, u"2/3/76, 2:50\u202FAM");
248+
u_strcpy(temp, u"2/3/76, 2:50 AM");
249249
parsepos=0;
250250
status=U_ZERO_ERROR;
251251

@@ -966,7 +966,7 @@ static void TestDateFormatCalendar(void) {
966966
u_errorName(ec));
967967
goto FAIL;
968968
}
969-
u_strcpy(uExpected, u"5:45\u202FPM");
969+
u_strcpy(uExpected, u"5:45 PM");
970970
u_austrcpy(cbuf, uExpected);
971971
if (u_strlen(uExpected) != len1 || u_strncmp(uExpected, buf1, len1) != 0) {
972972
log_err("FAIL: udat_formatCalendar(17:45), expected: %s", cbuf);
@@ -2101,23 +2101,23 @@ static void TestHourCycle(void) {
21012101
static const UDate date = -845601267742; // March 16, 1943 at 3:45 PM
21022102
const UChar* testCases[] = {
21032103
// test some locales for which we have data
2104-
u"en_US", u"Tuesday, March 16, 1943 at 3:45:32PM",
2105-
u"en_CA", u"Tuesday, March 16, 1943 at 3:45:32p.m.",
2104+
u"en_US", u"Tuesday, March 16, 1943 at 3:45:32 PM",
2105+
u"en_CA", u"Tuesday, March 16, 1943 at 3:45:32 p.m.",
21062106
u"en_GB", u"Tuesday, 16 March 1943 at 15:45:32",
2107-
u"en_AU", u"Tuesday, 16 March 1943 at 3:45:32pm",
2107+
u"en_AU", u"Tuesday, 16 March 1943 at 3:45:32 pm",
21082108
// test a couple locales for which we don't have specific locale files (we should still get the correct hour cycle)
21092109
u"en_CO", u"Tuesday, March 16, 1943 at 3:45:32 PM",
21102110
u"en_MX", u"Tuesday, March 16, 1943 at 3:45:32 PM",
21112111
// test that the rg subtag does the right thing
21122112
u"en_US@rg=GBzzzz", u"Tuesday, March 16, 1943 at 15:45:32",
21132113
u"en_US@rg=CAzzzz", u"Tuesday, March 16, 1943 at 3:45:32 PM",
21142114
u"en_CA@rg=USzzzz", u"Tuesday, March 16, 1943 at 3:45:32 p.m.",
2115-
u"en_GB@rg=USzzzz", u"Tuesday, 16 March 1943 at 3:45:32pm",
2116-
u"en_GB@rg=CAzzzz", u"Tuesday, 16 March 1943 at 3:45:32pm",
2117-
u"en_GB@rg=AUzzzz", u"Tuesday, 16 March 1943 at 3:45:32pm",
2115+
u"en_GB@rg=USzzzz", u"Tuesday, 16 March 1943 at 3:45:32 pm",
2116+
u"en_GB@rg=CAzzzz", u"Tuesday, 16 March 1943 at 3:45:32 pm",
2117+
u"en_GB@rg=AUzzzz", u"Tuesday, 16 March 1943 at 3:45:32 pm",
21182118
// test that the hc ("hours") subtag does the right thing
21192119
u"en_US@hours=h23", u"Tuesday, March 16, 1943 at 15:45:32",
2120-
u"en_GB@hours=h12", u"Tuesday, 16 March 1943 at 3:45:32pm",
2120+
u"en_GB@hours=h12", u"Tuesday, 16 March 1943 at 3:45:32 pm",
21212121
// test that the rg and hc subtags do the right thing when used together
21222122
u"en_US@rg=GBzzzz;hours=h12", u"Tuesday, March 16, 1943 at 3:45:32 PM",
21232123
u"en_GB@rg=USzzzz;hours=h23", u"Tuesday, 16 March 1943 at 15:45:32",

icu/icu4c/source/test/cintltst/cdtrgtst.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ void Test714(void)
516516
UErrorCode status = U_ZERO_ERROR;
517517
UDateFormat *fmt;
518518
UChar *result;
519-
const UChar* expect = u"7:25:43\u202FAM";
519+
const UChar* expect = u"7:25:43 AM";
520520

521521
ctest_setTimeZone(NULL, &status);
522522

icu/icu4c/source/test/cintltst/cmsgtst.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static const char* const txt_testResultStrings[] = {
4444
"Quotes ', {, a 1 {0}",
4545
"Quotes ', {, a 1 {0}",
4646
"You deposited 1 times an amount of $3,456.00 on 1/12/70",
47-
"{2,time,full}, for 3,456, 1 is 5:46:40\\u202FAM Pacific Standard Time and full date is Monday, January 12, 1970",
47+
"{2,time,full}, for 3,456, 1 is 5:46:40 AM Pacific Standard Time and full date is Monday, January 12, 1970",
4848
"{1,number,percent} for 1 is 345,600%"
4949
};
5050

icu/icu4c/source/test/cintltst/udatpg_test.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,9 @@ enum { kTestOptionsPatLenMax = 32 };
405405
static const UChar skel_Hmm[] = u"Hmm";
406406
static const UChar skel_HHmm[] = u"HHmm";
407407
static const UChar skel_hhmm[] = u"hhmm";
408-
static const UChar patn_hcmm_a[] = u"h:mm\u202Fa";
408+
static const UChar patn_hcmm_a[] = u"h:mm a";
409409
static const UChar patn_HHcmm[] = u"HH:mm";
410-
static const UChar patn_hhcmm_a[] = u"hh:mm\u202Fa";
410+
static const UChar patn_hhcmm_a[] = u"hh:mm a";
411411
static const UChar patn_HHpmm[] = u"HH.mm";
412412
static const UChar patn_hpmm_a[] = u"h.mm\u202Fa";
413413
static const UChar patn_Hpmm[] = u"H.mm";
@@ -656,10 +656,10 @@ static void TestDateTimePatterns(void) {
656656
// The following tests some locales in which there are differences between the
657657
// DateTimePatterns of various length styles.
658658
DTPLocaleAndResults localeAndResults[] = {
659-
{ "en", { u"EEEE, MMMM d, y 'at' h:mm\u202Fa", // long != medium
660-
u"MMMM d, y 'at' h:mm\u202Fa",
661-
u"MMM d, y, h:mm\u202Fa",
662-
u"M/d/y, h:mm\u202Fa" } },
659+
{ "en", { u"EEEE, MMMM d, y 'at' h:mm a", // long != medium
660+
u"MMMM d, y 'at' h:mm a",
661+
u"MMM d, y, h:mm a",
662+
u"M/d/y, h:mm a" } },
663663
{ "fr", { u"EEEE d MMMM y 'à' HH:mm", // medium != short
664664
u"d MMMM y 'à' HH:mm",
665665
u"d MMM y, HH:mm",
@@ -683,10 +683,10 @@ static void TestDateTimePatterns(void) {
683683
u"{1} _2_ {0}",
684684
u"{1} _3_ {0}"
685685
};
686-
DTPLocaleAndResults enModResults = { "en", { u"EEEE, MMMM d, y _0_ h:mm\u202Fa",
687-
u"MMMM d, y _1_ h:mm\u202Fa",
688-
u"MMM d, y _2_ h:mm\u202Fa",
689-
u"M/d/y _3_ h:mm\u202Fa" }
686+
DTPLocaleAndResults enModResults = { "en", { u"EEEE, MMMM d, y _0_ h:mm a",
687+
u"MMMM d, y _1_ h:mm a",
688+
u"MMM d, y _2_ h:mm a",
689+
u"M/d/y _3_ h:mm a" }
690690
};
691691

692692
// Test various locales with standard data
@@ -817,7 +817,7 @@ static void TestRegionOverride(void) {
817817
} RegionOverrideTest;
818818

819819
const RegionOverrideTest testCases[] = {
820-
{ "en_US", u"h:mm\u202fa", UDAT_HOUR_CYCLE_12 },
820+
{ "en_US", u"h:mm a", UDAT_HOUR_CYCLE_12 },
821821
{ "en_GB", u"HH:mm", UDAT_HOUR_CYCLE_23 },
822822
{ "en_US@rg=GBZZZZ", u"HH:mm", UDAT_HOUR_CYCLE_23 },
823823
{ "en_US@hours=h23", u"HH:mm", UDAT_HOUR_CYCLE_23 },
@@ -859,9 +859,9 @@ static void TestISO8601(void) {
859859
{ "en_US@calendar=iso8601", u"Edjmm", u"d, EEE, h:mm a" },
860860
{ "en_US@calendar=iso8601", u"EdHmm", u"d, EEE, HH:mm" },
861861

862-
{ "en_US", u"EEEEyMMMMdjmm", u"EEEE, MMMM d, y 'at' h:mma" },
862+
{ "en_US", u"EEEEyMMMMdjmm", u"EEEE, MMMM d, y 'at' h:mm a" },
863863
{ "en_US", u"EEEEyMMMMdHmm", u"EEEE, MMMM d, y 'at' HH:mm" },
864-
{ "en_US", u"Edjmm", u"d EEE, h:mma" },
864+
{ "en_US", u"Edjmm", u"d EEE, h:mm a" },
865865
{ "en_US", u"EdHmm", u"d EEE, HH:mm" },
866866
};
867867

icu/icu4c/source/test/intltest/dtfmrgts.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ void DateFormatRegressionTest::Test4052408()
144144
str = fmt->format(dt, str);
145145
logln(str);
146146

147-
if(str != u"5/3/97, 8:55\u202FAM")
148-
errln(UnicodeString(u"Fail: Test broken; Want 5/3/97, 8:55\u202FAM Got ", -1) + str);
147+
if(str != u"5/3/97, 8:55 AM")
148+
errln(UnicodeString(u"Fail: Test broken; Want 5/3/97, 8:55 AM Got ", -1) + str);
149149

150150
UnicodeString expected[] = {
151151
UnicodeString(""), //"ERA_FIELD",
@@ -1227,7 +1227,7 @@ void DateFormatRegressionTest::Test714()
12271227
}
12281228

12291229
UnicodeString s;
1230-
UnicodeString tests = UnicodeString(u"7:25:43\u202FAM");
1230+
UnicodeString tests = UnicodeString(u"7:25:43 AM");
12311231
UErrorCode status = U_ZERO_ERROR;
12321232
fmt->format (d,s);
12331233
if(U_FAILURE(status))

icu/icu4c/source/test/intltest/dtfmttst.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ DateFormatTest::TestBadInput135()
10031003
dataerrln("could not create date time instance");
10041004
return;
10051005
}
1006-
UnicodeString expected(u"March 1, 2000 at 1:23:45\u202FAM", -1);
1006+
UnicodeString expected(u"March 1, 2000 at 1:23:45 AM", -1);
10071007
for (int32_t i = 0; i < strings_length;++i) {
10081008
const char* text = strings[i];
10091009
for (int32_t j = 0; j < looks_length;++j) {
@@ -1342,7 +1342,7 @@ DateFormatTest::TestLocaleDateFormat() // Bug 495
13421342
DateFormat::FULL, Locale::getUS());
13431343
UnicodeString expectedFRENCH ( u"lundi 15 septembre 1997 à 00:00:00 heure d’été du Pacifique nord-américain", -1 );
13441344
expectedFRENCH = expectedFRENCH.unescape();
1345-
UnicodeString expectedUS ( u"Monday, September 15, 1997 at 12:00:00\u202FAM Pacific Daylight Time", -1 );
1345+
UnicodeString expectedUS ( u"Monday, September 15, 1997 at 12:00:00 AM Pacific Daylight Time", -1 );
13461346
logln(UnicodeString("Date set to : ") + dateToString(testDate));
13471347
UnicodeString out;
13481348
if (dfUS == nullptr || dfFrench == nullptr){
@@ -5028,7 +5028,7 @@ void DateFormatTest::TestPatternFromSkeleton() {
50285028
const char16_t* const pattern;
50295029
} TESTDATA[] = {
50305030
// Ticket #11985
5031-
{Locale::getEnglish(), "jjmm", u"h:mm\u202Fa"},
5031+
{Locale::getEnglish(), "jjmm", u"h:mm a"},
50325032
{Locale::getEnglish(), "JJmm", u"hh:mm"},
50335033
{Locale::getGerman(), "jjmm", u"HH:mm"},
50345034
{Locale::getGerman(), "JJmm", u"HH:mm"},
@@ -5851,23 +5851,23 @@ void DateFormatTest::TestHourCycle() {
58515851
UnicodeString expectedResult;
58525852
} TEST_CASES[] = {
58535853
// test some locales for which we have data
5854-
{ "en-us", u"Tuesday, March 16, 1943 at 3:45:32PM" },
5855-
{ "en-ca", u"Tuesday, March 16, 1943 at 3:45:32p.m." },
5854+
{ "en-us", u"Tuesday, March 16, 1943 at 3:45:32 PM" },
5855+
{ "en-ca", u"Tuesday, March 16, 1943 at 3:45:32 p.m." },
58565856
{ "en-gb", u"Tuesday, 16 March 1943 at 15:45:32" },
5857-
{ "en-au", u"Tuesday, 16 March 1943 at 3:45:32pm" },
5857+
{ "en-au", u"Tuesday, 16 March 1943 at 3:45:32 pm" },
58585858
// test a couple locales for which we don't have specific locale files (we should still get the correct hour cycle)
58595859
{ "en-co", u"Tuesday, March 16, 1943 at 3:45:32 PM" },
58605860
{ "en-mx", u"Tuesday, March 16, 1943 at 3:45:32 PM" },
58615861
// test that the rg subtag does the right thing
58625862
{ "en-us-u-rg-gbzzzz", u"Tuesday, March 16, 1943 at 15:45:32" },
58635863
{ "en-us-u-rg-cazzzz", u"Tuesday, March 16, 1943 at 3:45:32 PM" },
58645864
{ "en-ca-u-rg-uszzzz", u"Tuesday, March 16, 1943 at 3:45:32 p.m." },
5865-
{ "en-gb-u-rg-uszzzz", u"Tuesday, 16 March 1943 at 3:45:32pm" },
5866-
{ "en-gb-u-rg-cazzzz", u"Tuesday, 16 March 1943 at 3:45:32pm" },
5867-
{ "en-gb-u-rg-auzzzz", u"Tuesday, 16 March 1943 at 3:45:32pm" },
5865+
{ "en-gb-u-rg-uszzzz", u"Tuesday, 16 March 1943 at 3:45:32 pm" },
5866+
{ "en-gb-u-rg-cazzzz", u"Tuesday, 16 March 1943 at 3:45:32 pm" },
5867+
{ "en-gb-u-rg-auzzzz", u"Tuesday, 16 March 1943 at 3:45:32 pm" },
58685868
// test that the hc ("hours") subtag does the right thing
58695869
{ "en-us-u-hc-h23", u"Tuesday, March 16, 1943 at 15:45:32" },
5870-
{ "en-gb-u-hc-h12", u"Tuesday, 16 March 1943 at 3:45:32pm" },
5870+
{ "en-gb-u-hc-h12", u"Tuesday, 16 March 1943 at 3:45:32 pm" },
58715871
// test that the rg and hc subtags do the right thing when used together
58725872
{ "en-us-u-rg-gbzzzz-hc-h12", u"Tuesday, March 16, 1943 at 3:45:32 PM" },
58735873
{ "en-gb-u-rg-uszzzz-hc-h23", u"Tuesday, 16 March 1943 at 15:45:32" },

icu/icu4c/source/test/intltest/dtifmtts.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ void DateIntervalFormatTest::testFormat() {
496496

497497
"en", "CE 2007 10 10 10:10:10", "CE 2008 10 10 10:10:10", "EddMMy", "Wed, 10/10/2007\\u2009\\u2013\\u2009Fri, 10/10/2008",
498498

499-
"en", "CE 2007 10 10 10:10:10", "CE 2008 10 10 10:10:10", "hhmm", "10/10/2007, 10:10\\u202FAM\\u2009\\u2013\\u200910/10/2008, 10:10\\u202FAM",
499+
"en", "CE 2007 10 10 10:10:10", "CE 2008 10 10 10:10:10", "hhmm", "10/10/2007, 10:10 AM\\u2009\\u2013\\u200910/10/2008, 10:10 AM",
500500

501501
"en", "CE 2007 10 10 10:10:10", "CE 2008 10 10 10:10:10", "hhmmzz", "10/10/2007, 10:10\\u202FAM PDT\\u2009\\u2013\\u200910/10/2008, 10:10\\u202FAM PDT",
502502

@@ -633,7 +633,7 @@ void DateIntervalFormatTest::testFormat() {
633633

634634
"en", "CE 2007 11 10 10:10:10", "CE 2007 11 20 10:10:10", "EddMMy", "Sat, 11/10/2007\\u2009\\u2013\\u2009Tue, 11/20/2007",
635635

636-
"en", "CE 2007 11 10 10:10:10", "CE 2007 11 20 10:10:10", "hhmm", "11/10/2007, 10:10\\u202FAM\\u2009\\u2013\\u200911/20/2007, 10:10\\u202FAM",
636+
"en", "CE 2007 11 10 10:10:10", "CE 2007 11 20 10:10:10", "hhmm", "11/10/2007, 10:10 AM\\u2009\\u2013\\u200911/20/2007, 10:10 AM",
637637

638638
"en", "CE 2007 11 10 10:10:10", "CE 2007 11 20 10:10:10", "hhmmzz", "11/10/2007, 10:10\\u202FAM PST\\u2009\\u2013\\u200911/20/2007, 10:10\\u202FAM PST",
639639

@@ -821,7 +821,7 @@ void DateIntervalFormatTest::testFormat() {
821821
"en", "CE 2007 01 10 10:10:10", "CE 2007 01 10 10:10:20", "EEddMMyyyy", "Wed, 01/10/2007",
822822

823823

824-
"en", "CE 2007 01 10 10:10:10", "CE 2007 01 10 10:10:20", "hhmm", "10:10\\u202FAM",
824+
"en", "CE 2007 01 10 10:10:10", "CE 2007 01 10 10:10:20", "hhmm", "10:10 AM",
825825
"en", "CE 2007 01 10 10:10:10", "CE 2007 01 10 10:10:20", "HHmm", "10:10",
826826

827827
"en", "CE 2007 01 10 10:10:10", "CE 2007 01 10 10:10:20", "hhmmzz", "10:10\\u202FAM PST",
@@ -2382,7 +2382,7 @@ void DateIntervalFormatTest::testTicket21939() {
23822382
const DateFormat* df = dif->getDateFormat();
23832383
const SimpleDateFormat* sdf = dynamic_cast<const SimpleDateFormat*>(df);
23842384
UnicodeString pattern;
2385-
assertEquals("Wrong pattern", u"M/d/r, h:mm\u202Fa", sdf->toPattern(pattern));
2385+
assertEquals("Wrong pattern", u"M/d/r, h:mm a", sdf->toPattern(pattern));
23862386
}
23872387

23882388
// additional tests for the related ICU-22202

0 commit comments

Comments
 (0)