From 7ac0a919aa52b1d666e3ae7cd49387b664c19447 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 28 Mar 2015 11:32:17 -0400 Subject: [PATCH] Tests: Added Lexer::Type::uuid tests --- test/lexer.t.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/test/lexer.t.cpp b/test/lexer.t.cpp index 6507eeae5..4582d5f24 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 (454); + UnitTest t (508); std::vector > tokens; std::string token; @@ -464,14 +464,15 @@ int main (int argc, char** argv) // ( /pattern/ or 8ad2e3db-914d-4832-b0e6-72fa04f6e331,3b6218f9-726a-44fc-aa63-889ff52be442 ) // (1+2) - // UUIDs - // a360fc44-315c-4366-b70c-ea7e7520b749 - // a360fc44-315c-4366-b70c-ea7e7520b749,b7f8c869-b2ca-4983-995c-299d58bcc0b6 - // a360fc44-315c-4366-b70c-ea7e752 - // a360fc44-315c-4366-b70c - // a360fc44-315c-4366 - // a360fc44-315c - // a360fc44 + { "a360fc44-315c-4366-b70c-ea7e7520b749", { { "a360fc44-315c-4366-b70c-ea7e7520b749", Lexer::Type::uuid }, NO, NO }, }, + { "a360fc44-315c-4366-b70c-ea7e752", { { "a360fc44-315c-4366-b70c-ea7e752", Lexer::Type::uuid }, NO, NO }, }, + { "a360fc44-315c-4366-b70c", { { "a360fc44-315c-4366-b70c", Lexer::Type::uuid }, NO, NO }, }, + { "a360fc44-315c-4366", { { "a360fc44-315c-4366", Lexer::Type::uuid }, NO, NO }, }, + { "a360fc44-315c", { { "a360fc44-315c", Lexer::Type::uuid }, NO, NO }, }, + { "a360fc44", { { "a360fc44", Lexer::Type::uuid }, NO, NO }, }, + { "a360fc44,b7f8c869", { { "a360fc44", Lexer::Type::uuid }, + { ",", Lexer::Type::list }, + { "b7f8c869", Lexer::Type::uuid }, }, }, // Dates // today