Skip to content

Commit b520074

Browse files
committed
Update P0355R7 test assertions to match standard C locale %c output
1 parent e326b90 commit b520074

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • tests/std/tests/P0355R7_calendars_and_time_zones_formatting

tests/std/tests/P0355R7_calendars_and_time_zones_formatting/test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ void test_local_time_format_formatter() {
10121012
// Implements N4885 [time.zone.zonedtime.nonmembers]/2 for zoned_time.
10131013
empty_braces_helper(ltf, STR("2021-04-19 01:02:03 Meow"));
10141014

1015-
assert(format(STR("{:%c, %x, %X}"), ltf) == STR("04/19/21 01:02:03, 04/19/21, 01:02:03"));
1015+
assert(format(STR("{:%c, %x, %X}"), ltf) == STR("Mon Apr 19 01:02:03 2021, 04/19/21, 01:02:03"));
10161016
assert(format(STR("{:%D %F, %Y %C %y, %b %B %h %m, %d %e, %a %A %u %w}"), ltf)
10171017
== STR("04/19/21 2021-04-19, 2021 20 21, Apr April Apr 04, 19 19, Mon Monday 1 1"));
10181018
assert(format(STR("{:%H %I %M %S, %r, %R %T %p}"), ltf) == STR("01 01 02 03, 01:02:03 AM, 01:02 01:02:03 AM"));
@@ -1027,7 +1027,7 @@ void test_zoned_time_formatter() {
10271027

10281028
empty_braces_helper(zt, STR("2021-04-19 08:16:17 PDT"), STR("2021-04-19 08:16:17 GMT-7"));
10291029

1030-
assert(format(STR("{:%c, %x, %X}"), zt) == STR("04/19/21 08:16:17, 04/19/21, 08:16:17"));
1030+
assert(format(STR("{:%c, %x, %X}"), zt) == STR("Mon Apr 19 08:16:17 2021, 04/19/21, 08:16:17"));
10311031
assert(format(STR("{:%D %F, %Y %C %y, %b %B %h %m, %d %e, %a %A %u %w}"), zt)
10321032
== STR("04/19/21 2021-04-19, 2021 20 21, Apr April Apr 04, 19 19, Mon Monday 1 1"));
10331033
assert(format(STR("{:%H %I %M %S, %r, %R %T %p}"), zt) == STR("08 08 16 17, 08:16:17 AM, 08:16 08:16:17 AM"));

0 commit comments

Comments
 (0)