From b4b8edcebe690a66588edf636c664ad29a718c5c Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 11 Jul 2015 10:16:38 -0400 Subject: [PATCH] Test: Added problematic case --- test/lexer.t.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/lexer.t.cpp b/test/lexer.t.cpp index ace4a2e66..05746d981 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 (1069); + UnitTest t (1087); std::vector > tokens; std::string token; @@ -422,7 +422,9 @@ int main (int argc, char** argv) { "(+tag)", { { "(", Lexer::Type::op }, { "+tag", Lexer::Type::tag }, { ")", Lexer::Type::op }, NO, NO }, }, - + { "(name:value)", { { "(", Lexer::Type::op }, + { "name:value", Lexer::Type::pair }, + { ")", Lexer::Type::op }, NO, NO }, }, }; #define NUM_TESTS (sizeof (lexerTests) / sizeof (lexerTests[0]))