Tests: Added Lexer::Type::separator test

This commit is contained in:
Paul Beckingham 2015-03-28 11:33:57 -04:00
parent 7ac0a919aa
commit f26f790e74

View file

@ -36,7 +36,7 @@ Context context;
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
int main (int argc, char** argv) int main (int argc, char** argv)
{ {
UnitTest t (508); UnitTest t (514);
std::vector <std::pair <std::string, Lexer::Type> > tokens; std::vector <std::pair <std::string, Lexer::Type> > tokens;
std::string token; std::string token;
@ -485,8 +485,7 @@ int main (int argc, char** argv)
// 4weeks // 4weeks
// PT23H // PT23H
// Misc { "--", { { "--", Lexer::Type::separator }, NO, NO }, },
// --
}; };
#define NUM_TESTS (sizeof (lexerTests) / sizeof (lexerTests[0])) #define NUM_TESTS (sizeof (lexerTests) / sizeof (lexerTests[0]))