[Bash-completion-commits] [SCM] bash-completion branch, master, updated. a07b5c5ffd9fda19ed8d990776d9b1dac6a5bbdc

Freddy Vulto fvulto at gmail.com
Sun Nov 29 13:43:43 UTC 2009


The following commit has been merged in the master branch:
commit 511b7c7f35cc0d4bd13e587f1131294fc52fe305
Author: Freddy Vulto <fvulto at gmail.com>
Date:   Sun Nov 29 14:40:46 2009 +0100

    (testsuite) Fix `assert_complete_partial()'
    Make sure items are unique before assembling list of completions.

diff --git a/test/lib/library.exp b/test/lib/library.exp
index 3832550..730e98b 100644
--- a/test/lib/library.exp
+++ b/test/lib/library.exp
@@ -256,6 +256,8 @@ proc assert_complete_partial {expected cmd {partial ""} {test ""} {prompt /@} {s
         unresolved "$test"
     } else {
         set pick {}
+        # Make sure expected items are unique
+        set expected [lsort -unique $expected]
         foreach item $expected {
             if {$partial == ""} {set partial [string range $item 0 0]}
                 # Only append item if starting with $partial

-- 
bash-completion



More information about the Bash-completion-commits mailing list