mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-02 23:21:45 +01:00
Add a missing decimal point in exponent notation with trailing zeros
This commit is contained in:
@@ -1204,6 +1204,7 @@ TEST(FormatterTest, Precision) {
|
||||
EXPECT_EQ("1.2", format("{0:.2}", 1.2345l));
|
||||
EXPECT_EQ("1.2e+56", format("{:.2}", 1.234e56));
|
||||
EXPECT_EQ("1e+00", format("{:.0e}", 1.0L));
|
||||
EXPECT_EQ(" 0.0e+00", format("{:9.1e}", 0.0));
|
||||
EXPECT_EQ(
|
||||
"4.9406564584124654417656879286822137236505980261432476442558568250067550"
|
||||
"727020875186529983636163599237979656469544571773092665671035593979639877"
|
||||
|
||||
Reference in New Issue
Block a user