mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Testing
- Added more attribute names for testing. - Extended test script. - Added list of remaining work.
This commit is contained in:
parent
ee9552e23b
commit
eaeace7e98
3 changed files with 20 additions and 1 deletions
|
@ -56,6 +56,16 @@ private:
|
|||
void findOperator ();
|
||||
void validate ();
|
||||
|
||||
// TODO Resolve aliases
|
||||
// TODO Inject defaults
|
||||
// TODO Extract filter
|
||||
// TODO Extract words
|
||||
// TODO Extract modifications
|
||||
// TODO Prepare infix
|
||||
// TODO Expand operators
|
||||
// TODO Expand sequence
|
||||
// TODO Convert to postfix
|
||||
|
||||
private:
|
||||
Tree* _tree;
|
||||
std::multimap <std::string, std::string> _entities;
|
||||
|
|
|
@ -74,10 +74,15 @@ int main (int argc, char** argv)
|
|||
// Attributes (columns).
|
||||
a3t.entity ("attribute", "description");
|
||||
a3t.entity ("attribute", "due");
|
||||
a3t.entity ("attribute", "duration"); // UDAs are included.
|
||||
a3t.entity ("attribute", "end");
|
||||
a3t.entity ("attribute", "entry");
|
||||
a3t.entity ("attribute", "priority");
|
||||
a3t.entity ("attribute", "project");
|
||||
a3t.entity ("attribute", "scheduled");
|
||||
a3t.entity ("attribute", "start");
|
||||
a3t.entity ("attribute", "uuid");
|
||||
a3t.entity ("attribute", "duration"); // UDAs are included.
|
||||
a3t.entity ("attribute", "wait");
|
||||
|
||||
// Pseudo-attributes.
|
||||
a3t.entity ("pseudo", "limit");
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# Expression tests:
|
||||
#./parser $* grammar.bnf 123 mod pro:H
|
||||
|
||||
# 2.0.0 command line tests:
|
||||
#echo; ./args rc:x rc.debug:1 rc.hyphenate:off list pro:foo "(du<123.due or due.aft:som)" and entry '>'8/31/2011 +2w+1d /pattern/
|
||||
#echo; ./args rc:x rc.debug:1 rc.hyphenate:off list "pro:foo (du<123.due or due.aft:som) and entry >8/31/2011 +2w+1d /pattern/"
|
||||
#echo; ./args rc:x rc.debug:1 1-3,5 7 or +tag modify pri:H /from/to/g -tag
|
||||
|
@ -8,7 +10,9 @@
|
|||
#echo; ./args rc:x rc.debug:1 1234 done pri:H
|
||||
#echo; ./args rc:x rc.debug:1 a.b\<c \(one or two\) modify 'quoted string' \'not quoted\' due:eom+1wk+1d
|
||||
|
||||
# 2.4.0 command line tests:
|
||||
echo; ./args rc:~/.taskrc 123-128,140 142 mod pro:'P 1' +home /from/to/g /from/to/ rc.name=value
|
||||
echo; ./args rc:~/..taskrc rc.name=value add -- modify +tag /from/to/g name:value /long/path/to/file.txt
|
||||
echo; ./args /pattern/ or 8ad2e3db-914d-4832-b0e6-72fa04f6e331 limit:10 due.before:eom nex
|
||||
echo; ./args add Buy milk due:'eow - 2d' scheduled:due-1d
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue