From dfdb1adea5253e9ce0d5f5919594159b06f28922 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 12 Nov 2017 10:03:39 -0800 Subject: [PATCH] More tests --- test/format-test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/format-test.cc b/test/format-test.cc index 7d1e10d3..d57d3586 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -1870,4 +1870,6 @@ TEST(FormatTest, FormatStringErrors) { #endif EXPECT_ERROR("{foo", "missing '}' in format string", int); EXPECT_ERROR("{10000000000}", "number is too big"); + EXPECT_ERROR("{0x}", "invalid format string"); + EXPECT_ERROR("{-}", "invalid format string"); }