Use grouping() from locale for specifier 'n'
This commit is contained in:
+1
-5
@@ -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