Add missing presentation type checks for std::string (#2402)

This commit is contained in:
Victor Zverovich
2021-07-02 07:51:04 -07:00
parent 889bbf27a2
commit 1d7384530e
3 changed files with 5 additions and 2 deletions

View File

@@ -1390,6 +1390,8 @@ TEST(format_test, format_pointer) {
TEST(format_test, format_string) {
EXPECT_EQ("test", fmt::format("{0}", std::string("test")));
EXPECT_THROW(fmt::format(fmt::runtime("{:x}"), std::string("test")),
fmt::format_error);
}
TEST(format_test, format_string_view) {