Fix formatting of ranges of code unit types

Thanks Nicole Mazzuca.
This commit is contained in:
Victor Zverovich
2022-08-25 17:28:22 -07:00
parent 3a3b0709e2
commit 4a8e2949bb
2 changed files with 7 additions and 3 deletions

View File

@@ -418,3 +418,7 @@ TEST(ranges_test, range_of_range_of_mixed_const) {
fmt_ref_view<decltype(v)> r{&v};
EXPECT_EQ(fmt::format("{}", r), "[[1, 2, 3], [4, 5]]");
}
TEST(ranges_test, vector_char) {
EXPECT_EQ(fmt::format("{}", std::vector<char>{'a', 'b'}), "['a', 'b']");
}