mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-01 14:41:43 +01:00
Use grouping() from locale for specifier 'n'
This commit is contained in:
@@ -1475,11 +1475,7 @@ TEST(FormatterTest, FormatOct) {
|
||||
}
|
||||
|
||||
TEST(FormatterTest, FormatIntLocale) {
|
||||
EXPECT_EQ("123", format("{:n}", 123));
|
||||
EXPECT_EQ("1,234", format("{:n}", 1234));
|
||||
EXPECT_EQ("1,234,567", format("{:n}", 1234567));
|
||||
EXPECT_EQ("4,294,967,295",
|
||||
format("{:n}", max_value<uint32_t>()));
|
||||
EXPECT_EQ("1234", format("{:n}", 1234));
|
||||
}
|
||||
|
||||
struct ConvertibleToLongLong {
|
||||
|
||||
Reference in New Issue
Block a user