mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
tests: test_arglist.vim: align with Vim [ci skip] (#10612)
This just moves the test to where it is in Vim.
This commit is contained in:
@@ -167,15 +167,6 @@ func Test_argument()
|
|||||||
call assert_fails('argument', 'E163:')
|
call assert_fails('argument', 'E163:')
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_args_with_quote()
|
|
||||||
" Only on Unix can a file name include a double quote.
|
|
||||||
if has('unix')
|
|
||||||
args \"foobar
|
|
||||||
call assert_equal('"foobar', argv(0))
|
|
||||||
%argdelete
|
|
||||||
endif
|
|
||||||
endfunc
|
|
||||||
|
|
||||||
func Test_list_arguments()
|
func Test_list_arguments()
|
||||||
" Clean the argument list
|
" Clean the argument list
|
||||||
arga a | %argd
|
arga a | %argd
|
||||||
@@ -204,6 +195,15 @@ func Test_list_arguments()
|
|||||||
%argdelete
|
%argdelete
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func Test_args_with_quote()
|
||||||
|
" Only on Unix can a file name include a double quote.
|
||||||
|
if has('unix')
|
||||||
|
args \"foobar
|
||||||
|
call assert_equal('"foobar', argv(0))
|
||||||
|
%argdelete
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
" Test for 0argadd and 0argedit
|
" Test for 0argadd and 0argedit
|
||||||
" Ported from the test_argument_0count.in test script
|
" Ported from the test_argument_0count.in test script
|
||||||
func Test_zero_argadd()
|
func Test_zero_argadd()
|
||||||
|
Reference in New Issue
Block a user