Implement formatting of objects with (s)printf.

This commit is contained in:
vitaut
2015-09-08 08:36:20 -07:00
parent 59155abbf3
commit 79d8f59906
4 changed files with 23 additions and 13 deletions
+4
View File
@@ -426,6 +426,10 @@ TEST(PrintfTest, Pointer) {
EXPECT_PRINTF(fmt::format("{}", p), "%p", p);
}
TEST(PrintfTest, Custom) {
EXPECT_PRINTF("abc", "%s", TestString("abc"));
}
TEST(PrintfTest, Location) {
// TODO: test %n
}