Fix carry in fallback_format

This commit is contained in:
Victor Zverovich committed 2020-09-25 10:12:44 -07:00
1 parent 34179b3354
commit c156093ffd
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -957,6 +957,7 @@ TEST(FormatterTest, Precision) {
EXPECT_EQ("1.23", format("{:.02f}", 1.234));
EXPECT_EQ("0.001", format("{:.1g}", 0.001));
EXPECT_EQ("1019666400", format("{}", 1019666432.0f));
EXPECT_EQ("1e+01", format("{:.0e}", 9.5));
EXPECT_THROW_MSG(format("{0:.2}", reinterpret_cast<void*>(0xcafe)),
format_error,