Allow formatting C strings as pointers (#223)
This commit is contained in:
1 parent
7c24973637
commit
8b86a74ad5
5 files changed
+25
-9
No files matched your search
+1
-1
@@ -1336,7 +1336,7 @@ TEST(FormatterTest, FormatWChar) {
|
||||
}
|
||||
|
||||
TEST(FormatterTest, FormatCString) {
|
||||
check_unknown_types("test", "s", "string");
|
||||
check_unknown_types("test", "sp", "string");
|
||||
EXPECT_EQ("test", format("{0}", "test"));
|
||||
EXPECT_EQ("test", format("{0:s}", "test"));
|
||||
char nonconst[] = "nonconst";
|
||||
|
||||
Reference in new issue
Block a user