@@ -138,6 +138,19 @@ func Test_getcompletion()
138138 call assert_equal (keys , l )
139139 endif
140140
141+ if has (' signs' )
142+ sign define Testing linehl= Comment
143+ let l = getcompletion (' ' , ' sign' )
144+ let cmds = [' define' , ' jump' , ' list' , ' place' , ' undefine' , ' unplace' ]
145+ call assert_equal (cmds, l )
146+ " using cmdline completion must not change the result
147+ call feedkeys (" :sign list \<c-d>\<c-c> " , ' xt' )
148+ let l = getcompletion (' ' , ' sign' )
149+ call assert_equal (cmds, l )
150+ let l = getcompletion (' list ' , ' sign' )
151+ call assert_equal ([' Testing' ], l )
152+ endif
153+
141154 " For others test if the name is recognized.
142155 let names = [' buffer' , ' environment' , ' file_in_path' ,
143156 \ ' mapping' , ' shellcmd' , ' tag' , ' tag_listfiles' , ' user' ]
@@ -150,9 +163,6 @@ func Test_getcompletion()
150163 if has (' profile' )
151164 call add (names, ' syntime' )
152165 endif
153- if has (' signs' )
154- call add (names, ' sign' )
155- endif
156166
157167 set tags = Xtags
158168 call writefile ([" !_TAG_FILE_ENCODING\t utf-8\t //" , " word\t file\t cmd" ], ' Xtags' )
0 commit comments