[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-349-ga0834d3

Igor Murzov e-mail at date.by
Sun Jun 5 21:13:50 UTC 2011


The following commit has been merged in the master branch:
commit 3ac922e4a6d8d773f5e7a4c42ee86b4de3e0e3a2
Author: Igor Murzov <e-mail at date.by>
Date:   Sun Jun 5 15:14:27 2011 +0400

    testsuite: Remove unused -expect-cmd-full option from assert_complete*
    
    This option is implicitly enabled by default, so drop it to avoid confusion

diff --git a/test/lib/library.exp b/test/lib/library.exp
index 43271f5..4ff2885 100644
--- a/test/lib/library.exp
+++ b/test/lib/library.exp
@@ -155,8 +155,6 @@ proc assert_bash_list_dir {expected cmd dir test {args {}}} {
 # - the last whitespace is escaped, e.g. "finger foo\ " or "finger
 #   'foo "
 #
-# If the entire $cmd is expected, specify `-expect-cmd-full'.
-#
 # @param list $expected  Expected completions.
 # @param string $cmd  Command given to generate items
 # @param string $test  Test title
@@ -168,12 +166,6 @@ proc assert_bash_list_dir {expected cmd dir test {args {}}} {
 #         Valid only if a single completion is expected.
 #     -ltrim-colon-completions   Left-trim completions with cword containing
 #         colon (:)
-#     -expect-cmd-full   Expect the full $cmd to be echoed.  Expected is:
-#
-#             $cmd<TAB>\n
-#             $expected\n
-#             $prompt + $cmd + longest-common-prefix-of-$expected
-#
 #     -expect-cmd-minus DWORD   Expect $cmd minus DWORD to be echoed.
 #         Expected is:
 #
@@ -188,7 +180,6 @@ proc assert_complete {expected cmd {test ""} {args {}}} {
         {chunk-size.arg 20   "compare N list items at a time"}
         {nospace             "don't expect space after completion"}
         {ltrim-colon-completions  "left-trim completions with cword containing :"}
-        {expect-cmd-full          "Expect full cmd after prompt"}
         {expect-cmd-minus.arg ""  "Expect cmd minus DWORD after prompt"}
     }]
     if {[llength $expected] == 0} {
@@ -210,7 +201,6 @@ proc assert_complete_many {expected cmd {test ""} {args {}}} {
         {chunk-size.arg 20   "compare N list items at a time"}
         {nospace             "don't expect space after completion"}
         {ltrim-colon-completions  "left-trim completions with cword containing :"}
-        {expect-cmd-full          "Expect full cmd after prompt"}
         {expect-cmd-minus.arg ""  "Expect cmd minus CWORD after prompt"}
     }]
     if {$test == ""} {set test "$cmd should show completions"}
@@ -256,7 +246,6 @@ proc assert_complete_one {expected cmd {test ""} {args {}}} {
         {chunk-size.arg 20   "compare N list items at a time"}
         {nospace             "don't expect space after completion"}
         {ltrim-colon-completions  "left-trim completions with cword containing :"}
-        {expect-cmd-full          "Expect full cmd after prompt"}
         {expect-cmd-minus.arg ""  "Expect cmd minus CWORD after prompt"}
     }]
     set prompt $arg(prompt)

-- 
bash-completion



More information about the Bash-completion-commits mailing list