From 6132bdeb472c46cdc46159073158f8a534ea8cc1 Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Tue, 28 Feb 2012 09:50:00 +0100 Subject: [PATCH] Add more test cases for arguments and options completion. --- tests/t6000-completion.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/t6000-completion.sh b/tests/t6000-completion.sh index cb1eccf..babe13e 100755 --- a/tests/t6000-completion.sh +++ b/tests/t6000-completion.sh @@ -14,5 +14,8 @@ test_todo_completion 'all arguments' 'todo.sh ' "$ACTIONS $OPTIONS" test_todo_completion 'arguments beginning with a' 'todo.sh a' 'add a addto addm append app archive' test_todo_completion 'all options' 'todo.sh -' "$OPTIONS" test_todo_completion 'all actions after command action' 'todo.sh command ' "$ACTIONS" +test_todo_completion 'all arguments after option' 'todo.sh -a ' "$ACTIONS $OPTIONS" +test_todo_completion 'all arguments after options' 'todo.sh -a -p ' "$ACTIONS $OPTIONS" +test_todo_completion 'all options after options' 'todo.sh -a -p -' "$OPTIONS" test_done