From ea2976e6d5a6c707d218566ef913dd3f7a93edc1 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 11 May 2019 06:58:22 -0700 Subject: [PATCH] Move internal::uintptr_t test to format-impl-test (#1152) --- test/format-impl-test.cc | 9 +++++++++ test/format-test.cc | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/format-impl-test.cc b/test/format-impl-test.cc index d6f85a37b78b..f12dfe23b82a 100644 --- a/test/format-impl-test.cc +++ b/test/format-impl-test.cc @@ -253,3 +253,12 @@ TEST(UtilTest, CountDigits) { test_count_digits(); test_count_digits(); } + +TEST(UtilTest, WriteUIntPtr) { + fmt::memory_buffer buf; + fmt::writer writer(buf); + writer.write_pointer(fmt::internal::bit_cast( + reinterpret_cast(0xface)), + FMT_NULL); + EXPECT_EQ("0xface", to_string(buf)); +} diff --git a/test/format-test.cc b/test/format-test.cc index 3321a552bc63..dd65bdd3f149 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -685,15 +685,6 @@ TEST(WriterTest, WriteWideString) { // std::declval>().write("abc"); } -TEST(WriterTest, WriteUIntPtr) { - memory_buffer buf; - fmt::writer writer(buf); - writer.write_pointer(fmt::internal::bit_cast( - reinterpret_cast(0xface)), - FMT_NULL); - EXPECT_EQ("0xface", to_string(buf)); -} - TEST(FormatToTest, FormatWithoutArgs) { std::string s; fmt::format_to(std::back_inserter(s), "test");