Use [] instead of {} in ranges for consistency with Python format

This commit is contained in:
Victor Zverovich
2021-05-04 21:04:21 -07:00
parent 38bcc04a11
commit 400b953fbb
3 changed files with 31 additions and 24 deletions
+1 -1
View File
@@ -288,5 +288,5 @@ TEST(ostream_test, to_string) {
TEST(ostream_test, range) {
auto strs = std::vector<TestString>{TestString("foo"), TestString("bar")};
EXPECT_EQ("{foo, bar}", fmt::format("{}", strs));
EXPECT_EQ("[foo, bar]", fmt::format("{}", strs));
}