Fix handling of hexfloat

This commit is contained in:
Victor Zverovich
2019-06-12 20:53:01 -07:00
parent 92a44db11c
commit cbbee1b385
2 changed files with 17 additions and 14 deletions
+2
View File
@@ -1506,6 +1506,8 @@ TEST(FormatterTest, FormatLongDouble) {
safe_sprintf(buffer, "%Le", 392.65l);
EXPECT_EQ(buffer, format("{0:e}", 392.65l));
EXPECT_EQ("+0000392.6", format("{0:+010.4g}", 392.64l));
safe_sprintf(buffer, "%La", 3.31l);
EXPECT_EQ(buffer, format("{:a}", 3.31l));
}
TEST(FormatterTest, FormatChar) {