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");