Closed
Description
Both format("{:#.0f}", 0.01)
and format("{:#.0f}", 0.5)
should return "0."
(like std::ostringstream does), but they return "0"
and "0.."
, respectively
Please add some tests to test-format.cc like the following:
EXPECT_EQ("0.", format("{:#.0f}", 0.01));
EXPECT_EQ("0.", format("{:#.0f}", 0.5));
Metadata
Assignees
Labels
No labels
Activity