From 97558abc292ec8e72f6787e74c2577e6fde6eb80 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Fri, 5 Dec 2014 21:46:51 +0100 Subject: [PATCH] Test with a missing closing quote --- test/QuotedString_ExtractFrom_Tests.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/QuotedString_ExtractFrom_Tests.cpp b/test/QuotedString_ExtractFrom_Tests.cpp index a170bf9c..cf9661c0 100644 --- a/test/QuotedString_ExtractFrom_Tests.cpp +++ b/test/QuotedString_ExtractFrom_Tests.cpp @@ -41,6 +41,12 @@ TEST_F(QuotedString_ExtractFrom_Tests, NoQuotes) { resultMustBe(0); } +TEST_F(QuotedString_ExtractFrom_Tests, MissingClosingQuote) { + whenInputIs("\"hello world"); + + resultMustBe(0); +} + TEST_F(QuotedString_ExtractFrom_Tests, EmptySingleQuotedString) { whenInputIs("''");