#!/bin/sh test_description='archive functionality Ensure we can archive items successfully. ' . ./test-lib.sh cat > todo.txt <>> todo.sh archive x done TODO: $HOME/todo.txt archived. EOF test_todo_session 'list after archive' <>> todo.sh ls 5 four 1 one 4 one 3 three 2 two -- TODO: 5 of 5 tasks shown EOF test_done