mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-01 14:41:43 +01:00
Fix wchar_t tm formatting
This commit is contained in:
committed by
Victor Zverovich
parent
92614ecbf9
commit
d9fd695ac7
@@ -261,6 +261,8 @@ TEST(xchar_test, chrono) {
|
||||
EXPECT_EQ(fmt::format("The date is {:%Y-%m-%d %H:%M:%S}.", tm),
|
||||
"The date is 2016-04-25 11:22:33.");
|
||||
EXPECT_EQ(L"42s", fmt::format(L"{}", std::chrono::seconds(42)));
|
||||
EXPECT_EQ(fmt::format(L"{:%F}", tm), L"2016-04-25");
|
||||
EXPECT_EQ(fmt::format(L"{:%T}", tm), L"11:22:33");
|
||||
}
|
||||
|
||||
TEST(xchar_test, color) {
|
||||
|
||||
Reference in New Issue
Block a user