Test example.

This commit is contained in:
Victor Zverovich 2014-04-17 18:28:45 -07:00
parent c22c26ed3d
commit 7f622c118d

View File

@ -1433,6 +1433,10 @@ TEST(FormatterTest, Examples) {
std::string path = "somefile";
ReportError("File not found: {0}") << path;
EXPECT_THROW_MSG(
Format("The answer is {:d}", "forty-two"), FormatError,
"unknown format code 'd' for string");
}
TEST(FormatIntTest, Data) {