mirror of
https://github.com/fmtlib/fmt.git
synced 2025-10-17 16:25:30 +02:00
%.f should have zero precision, not default precision
This commit is contained in:
committed by
Victor Zverovich
parent
c03f55ec3a
commit
cbac016cce
@@ -401,6 +401,9 @@ TEST(PrintfTest, LongLong) {
|
||||
|
||||
TEST(PrintfTest, Float) {
|
||||
EXPECT_PRINTF("392.650000", "%f", 392.65);
|
||||
EXPECT_PRINTF("392.65", "%.2f", 392.65);
|
||||
EXPECT_PRINTF("392.6", "%.1f", 392.65);
|
||||
EXPECT_PRINTF("393", "%.f", 392.65);
|
||||
EXPECT_PRINTF("392.650000", "%F", 392.65);
|
||||
EXPECT_PRINTF("392.65", "%s", 392.65);
|
||||
char buffer[BUFFER_SIZE];
|
||||
|
Reference in New Issue
Block a user