Add a bigint stub and reenable grisu

This commit is contained in:
Victor Zverovich
2019-09-07 12:54:16 -07:00
parent b2f0b6e44e
commit 56b5c192a0
3 changed files with 57 additions and 3 deletions

View File

@@ -22,8 +22,17 @@
#undef max
using fmt::internal::bigint;
using fmt::internal::fp;
static_assert(!std::is_copy_constructible<bigint>::value, "");
static_assert(!std::is_copy_assignable<bigint>::value, "");
TEST(BigIntTest, Construct) {
EXPECT_EQ("42", fmt::format("{}", bigint(0x42)));
EXPECT_EQ("123456789abcedf0", fmt::format("{}", bigint(0x123456789abcedf0)));
}
template <bool is_iec559> void test_construct_from_double() {
fmt::print("warning: double is not IEC559, skipping FP tests\n");
}