Move wmemory_buffer to wchar.h

This commit is contained in:
Victor Zverovich
2021-05-29 08:26:04 -07:00
parent 4a7801c3ec
commit a9a9018191
4 changed files with 14 additions and 18 deletions
+6
View File
@@ -37,6 +37,12 @@ TEST(wchar_test, vformat_to) {
EXPECT_EQ(L"42", w);
}
TEST(wchar_test, format_to_memory_buffer) {
auto buf = fmt::wmemory_buffer();
fmt::format_to(buf, L"{}", L"foo");
EXPECT_EQ(L"foo", to_string(buf));
}
TEST(format_test, wide_format_to_n) {
wchar_t buffer[4];
buffer[3] = L'x';