Enable grisu for shortest roundtrip (default) formatting

This commit is contained in:
Victor Zverovich committed 2019-02-03 10:38:28 -08:00
1 parent b8d34e0db3
commit 355eb6d29a
8 files changed
+138 -165

No files matched your search

+2 -2
View File
@@ -368,8 +368,8 @@ TEST(PrintfTest, Length) {
TestLength<std::size_t>("z");
TestLength<std::ptrdiff_t>("t");
long double max = std::numeric_limits<long double>::max();
EXPECT_PRINTF(fmt::format("{}", max), "%g", max);
EXPECT_PRINTF(fmt::format("{}", max), "%Lg", max);
EXPECT_PRINTF(fmt::format("{:.6}", max), "%g", max);
EXPECT_PRINTF(fmt::format("{:.6}", max), "%Lg", max);
}
TEST(PrintfTest, Bool) {