diff --git a/tests/t1800-del.sh b/tests/t1800-del.sh index aaf8675..621fd69 100755 --- a/tests/t1800-del.sh +++ b/tests/t1800-del.sh @@ -44,6 +44,47 @@ TODO: 1 deleted. TODO: 2 of 2 tasks shown EOF +cat > todo.txt <>> todo.sh -f del 1 +1: (B) smell the uppercase Roses +flowers @outside +TODO: 1 deleted. + +>>> todo.sh -f del 1 +1: No such task. +=== 1 + +>>> todo.sh add A new task +4: A new task +TODO: 4 added. + +>>> todo.sh -p list +2 (A) notice the sunflowers +4 A new task +3 stop +-- +TODO: 3 of 3 tasks shown + +>>> todo.sh -f -n del 2 +2: (A) notice the sunflowers +TODO: 2 deleted. + +>>> todo.sh add Another new task +3: Another new task +TODO: 3 added. + +>>> todo.sh -p list +2 A new task +3 Another new task +1 stop +-- +TODO: 3 of 3 tasks shown +EOF + cat > todo.txt <