Add a map formatter
This commit is contained in:
@@ -55,7 +55,7 @@ TEST(ranges_test, format_vector2) {
|
||||
|
||||
TEST(ranges_test, format_map) {
|
||||
auto m = std::map<std::string, int>{{"one", 1}, {"two", 2}};
|
||||
EXPECT_EQ(fmt::format("{}", m), "[(\"one\", 1), (\"two\", 2)]");
|
||||
EXPECT_EQ(fmt::format("{}", m), "{\"one\": 1, \"two\": 2}");
|
||||
}
|
||||
|
||||
TEST(ranges_test, format_pair) {
|
||||
|
||||
Reference in New Issue
Block a user