Improve handling of format strings in custom arguments.

This commit is contained in:
Victor Zverovich committed 2014-08-29 07:23:54 -07:00
1 parent 3947a7a98c
commit 271fa8c908
3 files changed
+17 -27

No files matched your search

+2 -1
View File
@@ -238,7 +238,8 @@ TEST(ArgTest, MakeArg) {
EXPECT_EQ(&t, arg.custom.value);
fmt::Writer w;
fmt::BasicFormatter<char> formatter(w);
arg.custom.format(&formatter, &t, "}");
const char *s = "}";
arg.custom.format(&formatter, &t, &s);
EXPECT_EQ("test", w.str());
}