From 7f622c118d76e17a158dc682ab31f7e901d6ff20 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 17 Apr 2014 18:28:45 -0700 Subject: [PATCH] Test example. --- format-test.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/format-test.cc b/format-test.cc index 07016c41..80d3b121 100644 --- a/format-test.cc +++ b/format-test.cc @@ -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) {