mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-29 05:11:05 +00:00
Remove old grisu tests
This commit is contained in:
parent
dd17f89a16
commit
9158bea1e1
@ -212,11 +212,6 @@ TEST(fp_test, dragonbox_max_k) {
|
|||||||
2 * fmt::detail::num_significand_bits<double>() - 1));
|
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) {
|
TEST(format_impl_test, format_error_code) {
|
||||||
std::string msg = "error 42", sep = ": ";
|
std::string msg = "error 42", sep = ": ";
|
||||||
{
|
{
|
||||||
|
@ -1413,9 +1413,6 @@ TEST(format_test, precision_rounding) {
|
|||||||
EXPECT_EQ("1.9156918820264798e-56",
|
EXPECT_EQ("1.9156918820264798e-56",
|
||||||
fmt::format("{}", 1.9156918820264798e-56));
|
fmt::format("{}", 1.9156918820264798e-56));
|
||||||
EXPECT_EQ("0.0000", fmt::format("{:.4f}", 7.2809479766055470e-15));
|
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) {
|
TEST(format_test, prettify_float) {
|
||||||
@ -2247,15 +2244,15 @@ TEST(format_test, format_named_arg_with_locale) {
|
|||||||
#endif // FMT_STATIC_THOUSANDS_SEPARATOR
|
#endif // FMT_STATIC_THOUSANDS_SEPARATOR
|
||||||
|
|
||||||
struct convertible_to_nonconst_cstring {
|
struct convertible_to_nonconst_cstring {
|
||||||
operator char*() const {
|
operator char*() const {
|
||||||
static char c[]="bar";
|
static char c[] = "bar";
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
FMT_BEGIN_NAMESPACE
|
FMT_BEGIN_NAMESPACE
|
||||||
template <> struct formatter<convertible_to_nonconst_cstring> : formatter<char*> {
|
template <>
|
||||||
};
|
struct formatter<convertible_to_nonconst_cstring> : formatter<char*> {};
|
||||||
FMT_END_NAMESPACE
|
FMT_END_NAMESPACE
|
||||||
|
|
||||||
TEST(format_test, formatter_nonconst_char) {
|
TEST(format_test, formatter_nonconst_char) {
|
||||||
|
Loading…
Reference in New Issue
Block a user