trailing_zeros -> showpoint

This commit is contained in:
Victor Zverovich
2019-12-18 12:12:09 -08:00
parent d7e72a09e0
commit 1b1c70108a
3 changed files with 11 additions and 10 deletions
+1
View File
@@ -924,6 +924,7 @@ TEST(FormatterTest, HashFlag) {
EXPECT_EQ("-42.0", format("{0:#}", -42.0));
EXPECT_EQ("-42.0", format("{0:#}", -42.0l));
EXPECT_EQ("4.e+01", format("{:#.0e}", 42.0));
EXPECT_THROW_MSG(format("{0:#", 'c'), format_error,
"missing '}' in format string");
EXPECT_THROW_MSG(format("{0:#}", 'c'), format_error,