From 12eca4b2cc72c1c01b3ba225a2321ff37947bb7a Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 28 Mar 2015 11:38:03 -0400 Subject: [PATCH] Tests: Added Lexer::Type::op tests --- test/lexer.t.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/test/lexer.t.cpp b/test/lexer.t.cpp index d815aa4fa..cee799b7e 100644 --- a/test/lexer.t.cpp +++ b/test/lexer.t.cpp @@ -36,7 +36,7 @@ Context context; //////////////////////////////////////////////////////////////////////////////// int main (int argc, char** argv) { - UnitTest t (514); + UnitTest t (538); std::vector > tokens; std::string token; @@ -450,11 +450,10 @@ int main (int argc, char** argv) { "rc.name:value", { { "rc.name:value", Lexer::Type::pair }, NO, NO }, }, { "rc.name=value", { { "rc.name=value", Lexer::Type::pair }, NO, NO }, }, - // Operators - // * - // >= - // xor - // _hastag_ + { "*", { { "*", Lexer::Type::op }, NO, NO }, }, + { ">=", { { ">=", Lexer::Type::op }, NO, NO }, }, + { "xor", { { "xor", Lexer::Type::op }, NO, NO }, }, + { "_hastag_", { { "_hastag_", Lexer::Type::op }, NO, NO }, }, // Expressions // name=value