From d2e892049d85ee94bdfd157d79dcb3ddbd3d2c52 Mon Sep 17 00:00:00 2001 From: Paul Mansfield Date: Wed, 24 Jun 2009 19:24:53 +0100 Subject: [PATCH] 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. --- tests/t1100-replace.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/t1100-replace.sh b/tests/t1100-replace.sh index d3e32d3..ecec0db 100755 --- a/tests/t1100-replace.sh +++ b/tests/t1100-replace.sh @@ -62,6 +62,17 @@ replaced with 4: collect the eggs EOF +test_todo_session 'replace with priority' <>> 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