From e99dec6e1b54b9a122fbca50a40b97e3bb1a27f8 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 11 Jul 2015 10:50:55 -0400 Subject: [PATCH] Test: Added failing quoted string test --- test/lexer.t.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/lexer.t.cpp b/test/lexer.t.cpp index 05746d981..f1c62bc0f 100644 --- a/test/lexer.t.cpp +++ b/test/lexer.t.cpp @@ -37,7 +37,7 @@ Context context; //////////////////////////////////////////////////////////////////////////////// int main (int argc, char** argv) { - UnitTest t (1087); + UnitTest t (1088); std::vector > tokens; std::string token; @@ -218,6 +218,9 @@ int main (int argc, char** argv) t.is (word, "'one two'", " word '" + word + "'"); t.is ((int)cursor, 9, " cursor"); + cursor = 0; + t.ok (Lexer::readWord ("'one", "'\"", cursor, word), "readWord ''one' --> false"); + // static bool readWord (const std::string&, std::string::size_type&, std::string&); cursor = 0; t.ok (Lexer::readWord ("input", cursor, word), "readWord 'input' --> true");