Implement thousands separators without locales

This commit is contained in:
Victor Zverovich
2021-09-04 06:32:46 -07:00
parent 08f98c7fac
commit 3b9c442689
2 changed files with 33 additions and 6 deletions
+4
View File
@@ -1595,6 +1595,10 @@ TEST(format_test, bytes) {
EXPECT_EQ(10, s.size());
}
TEST(format_test, thousands) {
EXPECT_EQ(fmt::format("{}", fmt::thousands(1000)), "1,000");
}
enum test_enum { foo, bar };
TEST(format_test, join) {