From b3962bb13d532e5de0cc908535fe9aa4ab0ce659 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 11 Jul 2015 11:30:57 -0400 Subject: [PATCH] Test: Fixed broken test for lexer --- test/lexer.t.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/lexer.t.cpp b/test/lexer.t.cpp index f1c62bc0f..4207e2917 100644 --- a/test/lexer.t.cpp +++ b/test/lexer.t.cpp @@ -218,8 +218,9 @@ int main (int argc, char** argv) t.is (word, "'one two'", " word '" + word + "'"); t.is ((int)cursor, 9, " cursor"); + // Unterminated quoted string is invalid. cursor = 0; - t.ok (Lexer::readWord ("'one", "'\"", cursor, word), "readWord ''one' --> false"); + t.notok (Lexer::readWord ("'one", "'\"", cursor, word), "readWord ''one' --> false"); // static bool readWord (const std::string&, std::string::size_type&, std::string&); cursor = 0;