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
@@ -425,6 +425,8 @@ TEST(PrintfTest, Pointer) {
|
||||
int n;
|
||||
void *p = &n;
|
||||
EXPECT_PRINTF(fmt::format("{}", p), "%p", p);
|
||||
const char *s = "test";
|
||||
EXPECT_PRINTF(fmt::format("{:p}", s), "%p", s);
|
||||
}
|
||||
|
||||
TEST(PrintfTest, Custom) {
|
||||
|
||||
Reference in new issue
Block a user