Bug Fix: do: no safeguard to do twice

Tests item is not marked done before attempting to mark item as "done".
This commit is contained in:
Paul Mansfield
2009-08-29 21:13:38 +01:00
parent 266d9e1258
commit 7baf051942
2 changed files with 20 additions and 7 deletions

View File

@@ -69,4 +69,12 @@ TODO: $HOME/todo.txt archived.
TODO: 3 of 3 tasks shown from $HOME/todo.txt
EOF
test_todo_session 'fail multiple do attempts' <<EOF
>>> todo.sh -a do 3
3: x 2009-02-13 stop
TODO: 3 marked as done.
>>> todo.sh -a do 3
3 is already marked done
EOF
test_done