mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-01 03:34:45 +02:00
Move internal::uintptr_t test to format-impl-test (#1152)
This commit is contained in:
@@ -253,3 +253,12 @@ TEST(UtilTest, CountDigits) {
|
|||||||
test_count_digits<uint32_t>();
|
test_count_digits<uint32_t>();
|
||||||
test_count_digits<uint64_t>();
|
test_count_digits<uint64_t>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST(UtilTest, WriteUIntPtr) {
|
||||||
|
fmt::memory_buffer buf;
|
||||||
|
fmt::writer writer(buf);
|
||||||
|
writer.write_pointer(fmt::internal::bit_cast<fmt::internal::uintptr_t>(
|
||||||
|
reinterpret_cast<void*>(0xface)),
|
||||||
|
FMT_NULL);
|
||||||
|
EXPECT_EQ("0xface", to_string(buf));
|
||||||
|
}
|
||||||
|
@@ -685,15 +685,6 @@ TEST(WriterTest, WriteWideString) {
|
|||||||
// std::declval<fmt::basic_writer<fmt::wbuffer>>().write("abc");
|
// std::declval<fmt::basic_writer<fmt::wbuffer>>().write("abc");
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(WriterTest, WriteUIntPtr) {
|
|
||||||
memory_buffer buf;
|
|
||||||
fmt::writer writer(buf);
|
|
||||||
writer.write_pointer(fmt::internal::bit_cast<fmt::internal::uintptr_t>(
|
|
||||||
reinterpret_cast<void*>(0xface)),
|
|
||||||
FMT_NULL);
|
|
||||||
EXPECT_EQ("0xface", to_string(buf));
|
|
||||||
}
|
|
||||||
|
|
||||||
TEST(FormatToTest, FormatWithoutArgs) {
|
TEST(FormatToTest, FormatWithoutArgs) {
|
||||||
std::string s;
|
std::string s;
|
||||||
fmt::format_to(std::back_inserter(s), "test");
|
fmt::format_to(std::back_inserter(s), "test");
|
||||||
|
Reference in New Issue
Block a user