diff --git a/test/lexer.t.cpp b/test/lexer.t.cpp index ce926815e..1d3290ca0 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 (1207); + UnitTest t (1208); std::vector > tokens; std::string token; @@ -106,6 +106,10 @@ int main (int argc, char** argv) Lexer::dequote (token); t.is (token, "o\\'clock", "dequote 'o\\'clock' --> o\\'clock"); + token = "abba"; + Lexer::dequote (token, "a"); + t.is (token, "bb", "dequote 'abba' (a) --> bb"); + // Should result in no tokens. Lexer l0 (""); t.notok (l0.token (token, type), "'' --> no tokens");