diff options
author | Victor Zverovich <victor.zverovich@gmail.com> | 2019-12-02 11:36:33 -0800 |
---|---|---|
committer | Victor Zverovich <victor.zverovich@gmail.com> | 2019-12-02 11:36:33 -0800 |
commit | 8bbe76af3a5427597185ad6207ee6e588d2eb0fd (patch) | |
tree | 9fdaac00f0ce616fb64beda5be4f37d4759f8c16 /test | |
parent | 4ca6821e8f26c96f815064f77dff0a74f562bffb (diff) | |
download | fmtlib-8bbe76af3a5427597185ad6207ee6e588d2eb0fd.tar.gz |
Add a missing decimal point in exponent notation with trailing zeros
Diffstat (limited to 'test')
-rw-r--r-- | test/format-test.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/format-test.cc b/test/format-test.cc index 84c9d8a0..f52e1275 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -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" |