Remove old grisu tests

This commit is contained in:
Victor Zverovich 2023-06-18 18:15:09 +03:00
parent dd17f89a16
commit 9158bea1e1
2 changed files with 6 additions and 14 deletions

View File

@ -212,11 +212,6 @@ TEST(fp_test, dragonbox_max_k) {
2 * fmt::detail::num_significand_bits<double>() - 1));
}
TEST(fp_test, grisu_format_compiles_with_on_ieee_double) {
auto buf = fmt::memory_buffer();
format_float(0.42, -1, fmt::detail::float_specs(), buf);
}
TEST(format_impl_test, format_error_code) {
std::string msg = "error 42", sep = ": ";
{

View File

@ -1413,9 +1413,6 @@ TEST(format_test, precision_rounding) {
EXPECT_EQ("1.9156918820264798e-56",
fmt::format("{}", 1.9156918820264798e-56));
EXPECT_EQ("0.0000", fmt::format("{:.4f}", 7.2809479766055470e-15));
// Trigger a rounding error in Grisu by a specially chosen number.
EXPECT_EQ("3788512123356.985352", fmt::format("{:f}", 3788512123356.985352));
}
TEST(format_test, prettify_float) {
@ -2254,8 +2251,8 @@ struct convertible_to_nonconst_cstring {
};
FMT_BEGIN_NAMESPACE
template <> struct formatter<convertible_to_nonconst_cstring> : formatter<char*> {
};
template <>
struct formatter<convertible_to_nonconst_cstring> : formatter<char*> {};
FMT_END_NAMESPACE
TEST(format_test, formatter_nonconst_char) {