mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-01 14:41:43 +01:00
Improve handling of format strings in custom arguments.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user