1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#!/bin/bash
#
test_description='Bash help completion functionality
This test checks todo_completion of actions for usage help.
'
. ./actions-test-lib.sh
. ./test-lib.sh
make_action "zany"
make_action "aardvark"
readonly ACTIONS='add a addto addm append app archive command del rm depri dp do help list ls listaddons listall lsa listcon lsc listfile lf listpri lsp listproj lsprj move mv prepend prep pri p replace report shorthelp'
readonly ADDONS='aardvark zany'
test_todo_completion 'all actions after help' 'todo-txt help ' "$ACTIONS $ADDONS"
test_todo_completion 'all actions after command help' 'todo-txt command help ' "$ACTIONS $ADDONS"
test_todo_completion 'actions beginning with a' 'todo-txt help a' 'add a addto addm append app archive aardvark'
test_done
|