comparison src/testdir/test_arglist.vim @ 15097:1946487c74ba v8.1.0559

patch 8.1.0559: command line completion not sufficiently tested commit https://github.com/vim/vim/commit/b513d3079bbe3f59a1f1a3d6931939a76cd7e54a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 2 14:55:08 2018 +0100 patch 8.1.0559: command line completion not sufficiently tested Problem: Command line completion not sufficiently tested. Solution: Add more tests. (Dominique Pelle, closes https://github.com/vim/vim/issues/3622)
author Bram Moolenaar <Bram@vim.org>
date Sun, 02 Dec 2018 15:00:05 +0100
parents 2c0bfa167468
children d2a162896a2a
comparison
equal deleted inserted replaced
15096:f46ed63e2ce0 15097:1946487c74ba
394 call assert_fails('argdelete', 'E471:') 394 call assert_fails('argdelete', 'E471:')
395 call assert_fails('1,100argdelete', 'E16:') 395 call assert_fails('1,100argdelete', 'E16:')
396 %argd 396 %argd
397 endfunc 397 endfunc
398 398
399 func Test_argdelete_completion()
400 args foo bar
401
402 call feedkeys(":argdelete \<C-A>\<C-B>\"\<CR>", 'tx')
403 call assert_equal('"argdelete bar foo', @:)
404
405 call feedkeys(":argdelete x \<C-A>\<C-B>\"\<CR>", 'tx')
406 call assert_equal('"argdelete x bar foo', @:)
407
408 %argd
409 endfunc
410
399 " Tests for the :next, :prev, :first, :last, :rewind commands 411 " Tests for the :next, :prev, :first, :last, :rewind commands
400 func Test_argpos() 412 func Test_argpos()
401 call Reset_arglist() 413 call Reset_arglist()
402 args a b c d 414 args a b c d
403 last 415 last