Add sprintf overload for wide strings

and fix an issue in formatting user-defined objects.
Thanks to @ScottLangham
This commit is contained in:
vitaut committed 2015-09-18 16:26:41 -07:00
1 parent 79d8f59906
commit ef710dee6c
4 files changed
+27 -5

No files matched your search

+4
View File
@@ -456,3 +456,7 @@ TEST(PrintfTest, PrintfError) {
EXPECT_LT(result, 0);
}
#endif
TEST(PrintfTest, WideString) {
EXPECT_EQ(L"abc", fmt::sprintf(L"%s", TestWString(L"abc")));
}