mirror of
https://github.com/fmtlib/fmt.git
synced 2025-10-08 12:21:00 +02:00
Add nullptr support
This commit is contained in:
@@ -1219,6 +1219,7 @@ TEST(FormatterTest, FormatPointer) {
|
||||
EXPECT_EQ("0x" + std::string(sizeof(void*) * CHAR_BIT / 4, 'f'),
|
||||
format("{0}", reinterpret_cast<void*>(~uintptr_t())));
|
||||
EXPECT_EQ("0x1234", format("{}", fmt::ptr(reinterpret_cast<int*>(0x1234))));
|
||||
EXPECT_EQ("0x0", format("{}", nullptr));
|
||||
}
|
||||
|
||||
TEST(FormatterTest, FormatString) {
|
||||
|
Reference in New Issue
Block a user