Implement format specs in fmt::thousands
This commit is contained in:
1 parent
3b9c442689
commit
c4d0f96a6d
2 files changed
+21
-2
No files matched your search
+2
-1
@@ -1596,7 +1596,8 @@ TEST(format_test, bytes) {
|
||||
}
|
||||
|
||||
TEST(format_test, thousands) {
|
||||
EXPECT_EQ(fmt::format("{}", fmt::thousands(1000)), "1,000");
|
||||
EXPECT_EQ(fmt::format("{}", fmt::thousands(10000000)), "10,000,000");
|
||||
EXPECT_EQ(fmt::format("{:8}", fmt::thousands(1000)), " 1,000");
|
||||
}
|
||||
|
||||
enum test_enum { foo, bar };
|
||||
|
||||
Reference in new issue
Block a user