@@ -90,7 +90,7 @@ endfunc
9090
9191" Test for [count]argument and [count]argdelete commands
9292" Ported from the test_argument_count.in test script
93- function Test_argument ()
93+ func Test_argument ()
9494 " Clean the argument list
9595 arga a | % argd
9696
@@ -162,11 +162,11 @@ function Test_argument()
162162
163163 % argdelete
164164 call assert_fails (' argument' , ' E163:' )
165- endfunction
165+ endfunc
166166
167167" Test for 0argadd and 0argedit
168168" Ported from the test_argument_0count.in test script
169- function Test_zero_argadd ()
169+ func Test_zero_argadd ()
170170 " Clean the argument list
171171 arga a | % argd
172172
@@ -188,22 +188,22 @@ function Test_zero_argadd()
188188 2 argu
189189 arga third
190190 call assert_equal ([' edited' , ' a' , ' third' , ' b' , ' c' , ' d' ], argv ())
191- endfunction
191+ endfunc
192192
193- function Reset_arglist ()
193+ func Reset_arglist ()
194194 args a | % argd
195- endfunction
195+ endfunc
196196
197197" Test for argc()
198- function Test_argc ()
198+ func Test_argc ()
199199 call Reset_arglist ()
200200 call assert_equal (0 , argc ())
201201 argadd a b
202202 call assert_equal (2 , argc ())
203- endfunction
203+ endfunc
204204
205205" Test for arglistid()
206- function Test_arglistid ()
206+ func Test_arglistid ()
207207 call Reset_arglist ()
208208 arga a b
209209 call assert_equal (0 , arglistid ())
@@ -218,19 +218,19 @@ function Test_arglistid()
218218 tabonly | only | enew !
219219 argglobal
220220 call assert_equal (0 , arglistid ())
221- endfunction
221+ endfunc
222222
223223" Test for argv()
224- function Test_argv ()
224+ func Test_argv ()
225225 call Reset_arglist ()
226226 call assert_equal ([], argv ())
227227 call assert_equal (" " , argv (2 ))
228228 argadd a b c d
229229 call assert_equal (' c' , argv (2 ))
230- endfunction
230+ endfunc
231231
232232" Test for the :argedit command
233- function Test_argedit ()
233+ func Test_argedit ()
234234 call Reset_arglist ()
235235 argedit a
236236 call assert_equal ([' a' ], argv ())
@@ -254,10 +254,10 @@ function Test_argedit()
254254 argedit ! y
255255 call assert_equal ([' x' , ' y' , ' a' , ' c' , ' b' ], argv ())
256256 % argd
257- endfunction
257+ endfunc
258258
259259" Test for the :argdelete command
260- function Test_argdelete ()
260+ func Test_argdelete ()
261261 call Reset_arglist ()
262262 args aa a aaa b bb
263263 argdelete a *
@@ -269,10 +269,10 @@ function Test_argdelete()
269269 call assert_fails (' argdelete' , ' E471:' )
270270 call assert_fails (' 1,100argdelete' , ' E16:' )
271271 % argd
272- endfunction
272+ endfunc
273273
274274" Tests for the :next, :prev, :first, :last, :rewind commands
275- function Test_argpos ()
275+ func Test_argpos ()
276276 call Reset_arglist ()
277277 args a b c d
278278 last
@@ -290,10 +290,10 @@ function Test_argpos()
290290 rewind
291291 call assert_equal (0 , argidx ())
292292 % argd
293- endfunction
293+ endfunc
294294
295295" Test for autocommand that redefines the argument list, when doing ":all".
296- function Test_arglist_autocmd ()
296+ func Test_arglist_autocmd ()
297297 autocmd BufReadPost Xxx2 next Xxx2 Xxx1
298298 call writefile ([' test file Xxx1' ], ' Xxx1' )
299299 call writefile ([' test file Xxx2' ], ' Xxx2' )
@@ -319,4 +319,11 @@ function Test_arglist_autocmd()
319319 call delete (' Xxx3' )
320320 argdelete Xxx*
321321 bwipe! Xxx1 Xxx2 Xxx3
322- endfunction
322+ endfunc
323+
324+ func Test_arg_all_expand ()
325+ call writefile ([' test file Xxx1' ], ' Xx x' )
326+ next notexist Xx\ x runtest.vim
327+ call assert_equal (' notexist Xx\ x runtest.vim' , expand (' ##' ))
328+ call delete (' Xx x' )
329+ endfunc
0 commit comments