aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-06-08 11:35:53 +0200
committerDaniel Hahler <git@thequod.de>2019-07-24 06:09:28 +0200
commite134cc9d4a13034401a1323e0515ceb19d43dfea (patch)
tree1eb5b729261951fa1747f91a1db3d9dfe03978fb /test
parent8fc93241d680f7c73e3013d679adb70c09cb3d57 (diff)
downloadrneovim-e134cc9d4a13034401a1323e0515ceb19d43dfea.tar.gz
rneovim-e134cc9d4a13034401a1323e0515ceb19d43dfea.tar.bz2
rneovim-e134cc9d4a13034401a1323e0515ceb19d43dfea.zip
vim-patch:8.0.1738: ":args" output is hard to read
Problem: ":args" output is hard to read. Solution: Make columns with the names if the output is more than one line. https://github.com/vim/vim/commit/5d69da462f584a3aefb3427b127334bf9af3a4b0 vim-patch:8.0.1740: warning for signed-unsigned incompatibility Problem: Warning for signed-unsigned incompatibility. Solution: Change type from "char *" to "char_u *". (John Marriott) https://github.com/vim/vim/commit/405dadb63ea2b7aa4c8c659807506a35a8a9504c Removes ported legacy test that was re-added later. Ref: https://github.com/neovim/neovim/pull/10147#issuecomment-512609513
Diffstat (limited to 'test')
-rw-r--r--test/functional/legacy/arglist_spec.lua68
1 files changed, 0 insertions, 68 deletions
diff --git a/test/functional/legacy/arglist_spec.lua b/test/functional/legacy/arglist_spec.lua
index bd65e549ef..241a19d940 100644
--- a/test/functional/legacy/arglist_spec.lua
+++ b/test/functional/legacy/arglist_spec.lua
@@ -92,74 +92,6 @@ describe('argument list commands', function()
eq(0, eval('len(argv())'))
end)
- it('test for [count]argument and [count]argdelete commands', function()
- reset_arglist()
- command('let save_hidden = &hidden')
- command('set hidden')
- command('let g:buffers = []')
- command('augroup TEST')
- command([[au BufEnter * call add(buffers, expand('%:t'))]])
- command('augroup END')
-
- command('argadd a b c d')
- command('$argu')
- command('$-argu')
- command('-argu')
- command('1argu')
- command('+2argu')
-
- command('augroup TEST')
- command('au!')
- command('augroup END')
-
- eq({'d', 'c', 'b', 'a', 'c'}, eval('g:buffers'))
-
- command('redir => result')
- command('ar')
- command('redir END')
- eq(1, eval([[result =~# 'a b \[c] d']]))
-
- command('.argd')
- eq({'a', 'b', 'd'}, eval('argv()'))
-
- command('-argd')
- eq({'a', 'd'}, eval('argv()'))
-
- command('$argd')
- eq({'a'}, eval('argv()'))
-
- command('1arga c')
- command('1arga b')
- command('$argu')
- command('$arga x')
- eq({'a', 'b', 'c', 'x'}, eval('argv()'))
-
- command('0arga Y')
- eq({'Y', 'a', 'b', 'c', 'x'}, eval('argv()'))
-
- command('%argd')
- eq({}, eval('argv()'))
-
- command('arga a b c d e f')
- command('2,$-argd')
- eq({'a', 'f'}, eval('argv()'))
-
- command('let &hidden = save_hidden')
-
- -- Setting the argument list should fail when the current buffer has
- -- unsaved changes
- command('%argd')
- command('enew!')
- command('set modified')
- assert_fails('args x y z', 'E37:')
- command('args! x y z')
- eq({'x', 'y', 'z'}, eval('argv()'))
- eq('x', eval('expand("%:t")'))
-
- command('%argdelete')
- assert_fails('argument', 'E163:')
- end)
-
it('test for 0argadd and 0argedit', function()
reset_arglist()