Fix compile-time parsing and add more tests

This commit is contained in:
Victor Zverovich committed 2017-11-11 11:40:56 -08:00
1 parent 5b95b5d77c
commit 686ff942af
2 files changed
+12 -5

No files matched your search

+2
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);
}