mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 19:03:07 +02:00
Tests: Recategorized lexemes that are only dates in the presence of Eval
This commit is contained in:
parent
96c448ca1e
commit
eb35386d76
1 changed files with 2 additions and 3 deletions
|
@ -36,7 +36,7 @@ Context context;
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int main (int argc, char** argv)
|
||||
{
|
||||
UnitTest t (771);
|
||||
UnitTest t (765);
|
||||
|
||||
std::vector <std::pair <std::string, Lexer::Type> > tokens;
|
||||
std::string token;
|
||||
|
@ -253,6 +253,7 @@ int main (int argc, char** argv)
|
|||
{ "foo.bar", { { "foo.bar", Lexer::Type::dom }, NO, NO, NO, NO }, },
|
||||
{ "1.foo.bar", { { "1.foo.bar", Lexer::Type::dom }, NO, NO, NO, NO }, },
|
||||
{ "a360fc44-315c-4366-b70c-ea7e7520b749.foo.bar", { { "a360fc44-315c-4366-b70c-ea7e7520b749.foo.bar", Lexer::Type::dom }, NO, NO, NO, NO }, },
|
||||
{ "today", { { "today", Lexer::Type::dom }, NO, NO, NO, NO }, },
|
||||
|
||||
// URL
|
||||
{ "http://tasktools.org", { { "http://tasktools.org", Lexer::Type::url }, NO, NO, NO, NO }, },
|
||||
|
@ -329,8 +330,6 @@ int main (int argc, char** argv)
|
|||
{ "b7f8c869", Lexer::Type::uuid }, NO, NO }, },
|
||||
|
||||
// Date
|
||||
{ "today", { { "today", Lexer::Type::date }, NO, NO, NO, NO }, },
|
||||
{ "23rd", { { "23rd", Lexer::Type::date }, NO, NO, NO, NO }, },
|
||||
{ "2015-W01", { { "2015-W01", Lexer::Type::date }, NO, NO, NO, NO }, },
|
||||
{ "2015-02-17", { { "2015-02-17", Lexer::Type::date }, NO, NO, NO, NO }, },
|
||||
{ "20131129T225800Z", { { "20131129T225800Z", Lexer::Type::date }, NO, NO, NO, NO }, },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue