mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Added a UUID parse test
This commit is contained in:
parent
2a6a40d97b
commit
f16ce91d45
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ Context context;
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
int main (int argc, char** argv)
|
int main (int argc, char** argv)
|
||||||
{
|
{
|
||||||
UnitTest t (1201);
|
UnitTest t (1207);
|
||||||
|
|
||||||
std::vector <std::pair <std::string, Lexer::Type>> tokens;
|
std::vector <std::pair <std::string, Lexer::Type>> tokens;
|
||||||
std::string token;
|
std::string token;
|
||||||
|
@ -346,6 +346,7 @@ int main (int argc, char** argv)
|
||||||
{ "name", { { "name", Lexer::Type::identifier }, NO, NO, NO, NO }, },
|
{ "name", { { "name", Lexer::Type::identifier }, NO, NO, NO, NO }, },
|
||||||
{ "f1", { { "f1", Lexer::Type::identifier }, NO, NO, NO, NO }, },
|
{ "f1", { { "f1", Lexer::Type::identifier }, NO, NO, NO, NO }, },
|
||||||
{ "foo.bar", { { "foo.bar", Lexer::Type::identifier }, NO, NO, NO, NO }, },
|
{ "foo.bar", { { "foo.bar", Lexer::Type::identifier }, NO, NO, NO, NO }, },
|
||||||
|
{ "a1a1a1a1_a1a1_a1a1_a1a1_a1a1a1a1a1a1", { { "a1a1a1a1_a1a1_a1a1_a1a1_a1a1a1a1a1a1", Lexer::Type::identifier }, NO, NO, NO, NO }, },
|
||||||
|
|
||||||
// Not a date, because Eval extracts named dates via data source, and Date/ISO8601d does not do that.
|
// Not a date, because Eval extracts named dates via data source, and Date/ISO8601d does not do that.
|
||||||
{ "today", { { "today", Lexer::Type::identifier }, NO, NO, NO, NO }, },
|
{ "today", { { "today", Lexer::Type::identifier }, NO, NO, NO, NO }, },
|
||||||
|
@ -452,7 +453,6 @@ int main (int argc, char** argv)
|
||||||
{ "a360fc44-315c", { { "a360fc44-315c", Lexer::Type::uuid }, NO, NO, NO, NO }, },
|
{ "a360fc44-315c", { { "a360fc44-315c", Lexer::Type::uuid }, NO, NO, NO, NO }, },
|
||||||
{ "a360fc44", { { "a360fc44", Lexer::Type::uuid }, NO, NO, NO, NO }, },
|
{ "a360fc44", { { "a360fc44", Lexer::Type::uuid }, NO, NO, NO, NO }, },
|
||||||
|
|
||||||
|
|
||||||
// Date
|
// Date
|
||||||
{ "2015-W01", { { "2015-W01", 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 }, },
|
{ "2015-02-17", { { "2015-02-17", Lexer::Type::date }, NO, NO, NO, NO }, },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue