Use the decimal point from locale

This commit is contained in:
Victor Zverovich
2019-07-03 17:25:57 -07:00
parent 476f25cd81
commit bc14c6ee20
5 changed files with 45 additions and 18 deletions

View File

@@ -1447,10 +1447,6 @@ TEST(FormatterTest, FormatDouble) {
EXPECT_EQ(buffer, format("{:A}", -42.0));
}
TEST(FormatterTest, FormatDoubleLocale) {
EXPECT_EQ("1.23", format("{:n}", 1.23));
}
TEST(FormatterTest, PrecisionRounding) {
EXPECT_EQ("0", format("{:.0f}", 0.0));
EXPECT_EQ("0", format("{:.0f}", 0.01));