Fix compile-time parsing and add more tests

This commit is contained in:
Victor Zverovich
2017-11-11 11:22:09 -08:00
parent 5b95b5d77c
commit 686ff942af
2 changed files with 12 additions and 5 deletions

View File

@@ -1858,4 +1858,6 @@ TEST(FormatTest, FormatStringErrors) {
EXPECT_ERROR("foo", nullptr);
EXPECT_ERROR("}", "unmatched '}' in format string");
EXPECT_ERROR("{0:s", "unknown format specifier", Date);
EXPECT_ERROR("{0:=5", "unknown format specifier", char);
EXPECT_ERROR("{foo", "missing '}' in format string", int);
}