Updated add command to accept lowercase priority (#230)

- Updated add command to accept lowercase priority
- Added testcase for add with lowercase priority
This commit is contained in:
Daniel St.Jacques
2017-10-10 10:10:34 -04:00
committed by Ali Karbassi
parent eeb5703728
commit 94e1c6e406
2 changed files with 30 additions and 0 deletions

View File

@@ -37,6 +37,22 @@ TODO: 2 of 2 tasks shown
TODO: 2 deleted.
EOF
test_todo_session 'cmd line first day with lowercase priority' <<EOF
>>> todo.sh -pt add '(b) notice the daisies'
2 (B) 2009-02-13 notice the daisies
TODO: 2 added.
>>> todo.sh -p list
2 (B) 2009-02-13 notice the daisies
1 2009-02-13 notice the daisies
--
TODO: 2 of 2 tasks shown
>>> todo.sh -npf del 2
2 (B) 2009-02-13 notice the daisies
TODO: 2 deleted.
EOF
test_tick
test_todo_session 'cmd line second day' <<EOF