mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-02 15:11:43 +01:00
Don't print trailing zero with fixed, precision=0, and showpoint (#1417)
This commit is contained in:
@@ -1212,6 +1212,7 @@ TEST(FormatterTest, Precision) {
|
||||
"012970999954193198940908041656332452475714786901472678015935523861155013"
|
||||
"480352649347201937902681071074917033322268447533357208324319361e-324",
|
||||
format("{:.494}", 4.9406564584124654E-324));
|
||||
EXPECT_EQ("123.", format("{:#.0f}", 123.0));
|
||||
|
||||
EXPECT_THROW_MSG(format("{0:.2}", reinterpret_cast<void*>(0xcafe)),
|
||||
format_error,
|
||||
|
||||
Reference in New Issue
Block a user