Move wchar/custom char overloads to xchar.h

This commit is contained in:
Victor Zverovich
2021-06-05 22:57:45 -07:00
parent e77b22d6da
commit 76ee490468
9 changed files with 143 additions and 152 deletions
-6
View File
@@ -48,8 +48,6 @@ TEST(chrono_test, format_tm) {
tm.tm_sec = 33;
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(fmt::format(L"The date is {:%Y-%m-%d %H:%M:%S}.", tm),
L"The date is 2016-04-25 11:22:33.");
}
TEST(chrono_test, grow_buffer) {
@@ -151,10 +149,6 @@ TEST(chrono_test, format_default) {
fmt::format("{}", std::chrono::duration<int, std::ratio<15, 4>>(42)));
}
TEST(chrono_test, format_wide) {
EXPECT_EQ(L"42s", fmt::format(L"{}", std::chrono::seconds(42)));
}
TEST(chrono_test, align) {
auto s = std::chrono::seconds(42);
EXPECT_EQ("42s ", fmt::format("{:5}", s));