Fix format_to formatting to wmemory_buffer

This commit is contained in:
Victor Zverovich
2018-09-21 09:48:21 -07:00
parent dc69cc45d2
commit cb122a4d03
2 changed files with 11 additions and 7 deletions
+3
View File
@@ -692,6 +692,9 @@ TEST(FormatToTest, FormatToMemoryBuffer) {
fmt::basic_memory_buffer<char, 100> buffer;
fmt::format_to(buffer, "{}", "foo");
EXPECT_EQ("foo", to_string(buffer));
fmt::wmemory_buffer wbuffer;
fmt::format_to(wbuffer, L"{}", L"foo");
EXPECT_EQ(L"foo", to_string(wbuffer));
}
TEST(FormatterTest, Escape) {