mirror of
https://github.com/fmtlib/fmt.git
synced 2024-10-02 13:02:03 +00:00
Test exotic pointer formatting
This commit is contained in:
parent
bd8177177a
commit
f10a7e2e46
@ -706,6 +706,7 @@ TEST(WriterTest, WriteUIntPtr) {
|
|||||||
fmt::writer writer(buf);
|
fmt::writer writer(buf);
|
||||||
writer.write_pointer(fmt::internal::bit_cast<fmt::internal::uintptr_t>(
|
writer.write_pointer(fmt::internal::bit_cast<fmt::internal::uintptr_t>(
|
||||||
reinterpret_cast<void*>(0xface)), FMT_NULL);
|
reinterpret_cast<void*>(0xface)), FMT_NULL);
|
||||||
|
EXPECT_EQ("0xface", to_string(buf));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(FormatToTest, FormatWithoutArgs) {
|
TEST(FormatToTest, FormatWithoutArgs) {
|
||||||
|
Loading…
Reference in New Issue
Block a user