Bugfix: Replace with priority set

Checks for a priority, if found removes priority does the replace
then adds back the priority.

Added a test for replace with priority set.
This commit is contained in:
Paul Mansfield
2009-06-24 19:24:53 +01:00
parent 0e2798acce
commit d2e892049d

View File

@@ -62,6 +62,17 @@ replaced with
4: collect the eggs
EOF
test_todo_session 'replace with priority' <<EOF
>>> todo.sh pri 4 a
4: (A) collect the eggs
TODO: 4 prioritized (A).
>>> todo.sh replace 4 "collect the bread"
4: (A) collect the eggs
replaced with
4: (A) collect the bread
EOF
test_todo_session 'replace error' << EOF
>>> todo.sh replace 10 "hej!"
=== 1