Check if setlocale succeeded
This commit is contained in:
parent
2d8a7ed086
commit
5b106083e7
@ -1214,8 +1214,8 @@ TEST(FormatterTest, FormatIntLocale) {
|
|||||||
#else
|
#else
|
||||||
const char *locale = "English_United States";
|
const char *locale = "English_United States";
|
||||||
#endif
|
#endif
|
||||||
std::setlocale(LC_ALL, locale);
|
if (std::setlocale(LC_ALL, locale))
|
||||||
EXPECT_EQ("1,234,567", format("{:n}", 1234567));
|
EXPECT_EQ("1,234,567", format("{:n}", 1234567));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(FormatterTest, FormatFloat) {
|
TEST(FormatterTest, FormatFloat) {
|
||||||
|
Loading…
Reference in New Issue
Block a user