test/signatures.vim: remove trailing spaces

This commit is contained in:
Daniel Hahler
2018-07-25 02:14:21 +02:00
committed by Dave Halter
parent 9a4a4f4074
commit 40fc5ab27f

View File

@@ -13,11 +13,8 @@ describe 'signatures'
it 'simple' it 'simple'
normal odef xyz(number): return normal odef xyz(number): return
normal o normal o
normal oxyz( normal oxyz()
normal G$ doautocmd CursorHoldI
" equals doautocmd CursorMovedI
Python jedi_vim.show_call_signatures()
Expect getline(3) == '?!?jedi=0, ?!? (*_*number*_*) ?!?jedi?!?' Expect getline(3) == '?!?jedi=0, ?!? (*_*number*_*) ?!?jedi?!?'
doautocmd InsertLeave doautocmd InsertLeave
@@ -43,13 +40,13 @@ describe 'signatures'
it 'simple after CursorHoldI with only parenthesis' it 'simple after CursorHoldI with only parenthesis'
noautocmd normal o noautocmd normal o
doautocmd CursorHoldI doautocmd CursorHoldI
noautocmd normal istr( noautocmd normal istr()
doautocmd CursorHoldI doautocmd CursorHoldI
Expect getline(1) == '?!?jedi=0, ?!? (*_*object*_*) ?!?jedi?!?' Expect getline(1) == '?!?jedi=0, ?!? (*_*object*_*) ?!?jedi?!?'
end end
it 'no signature' it 'no signature'
normal ostr exe 'normal ostr '
Python jedi_vim.show_call_signatures() Python jedi_vim.show_call_signatures()
Expect getline(1, '$') == ['', 'str '] Expect getline(1, '$') == ['', 'str ']
end end
@@ -57,7 +54,7 @@ describe 'signatures'
it 'signatures disabled' it 'signatures disabled'
let g:jedi#show_call_signatures = 0 let g:jedi#show_call_signatures = 0
normal ostr( exe 'normal ostr( '
Python jedi_vim.show_call_signatures() Python jedi_vim.show_call_signatures()
Expect getline(1, '$') == ['', 'str( '] Expect getline(1, '$') == ['', 'str( ']
@@ -68,19 +65,19 @@ describe 'signatures'
let g:jedi#show_call_signatures = 2 let g:jedi#show_call_signatures = 2
call jedi#configure_call_signatures() call jedi#configure_call_signatures()
normal ostr( exe 'normal ostr( '
redir => msg redir => msg
Python jedi_vim.show_call_signatures() Python jedi_vim.show_call_signatures()
redir END redir END
Expect msg == "\nstr(object)" Expect msg == "\nstr(object)"
redir => msg redir => msg
doautocmd InsertLeave doautocmd InsertLeave
redir END redir END
Expect msg == "\n" Expect msg == "\n"
normal Sdef foo(a, b): pass normal Sdef foo(a, b): pass
normal ofoo(a, b, c, exe 'normal ofoo(a, b, c, '
redir => msg redir => msg
Python jedi_vim.show_call_signatures() Python jedi_vim.show_call_signatures()
redir END redir END
@@ -104,13 +101,13 @@ describe 'signatures'
execute "normal o".funcname."( " execute "normal o".funcname."( "
Expect Signature() == "\n".funcname."(arg1, …)" Expect Signature() == "\n".funcname."(arg1, …)"
normal sarg1, exe 'normal sarg1, '
Expect Signature() == "\n".funcname."(…, arg2, …)" Expect Signature() == "\n".funcname."(…, arg2, …)"
normal sarg2, arg3, exe 'normal sarg2, arg3, '
Expect Signature() == "\n".funcname."(…, a, b, c)" Expect Signature() == "\n".funcname."(…, a, b, c)"
normal sa, b, exe 'normal sa, b, '
Expect Signature() == "\n".funcname."(…, c)" Expect Signature() == "\n".funcname."(…, c)"
g/^/d g/^/d
@@ -124,7 +121,7 @@ describe 'signatures'
let g:jedi#show_call_signatures = 2 let g:jedi#show_call_signatures = 2
call jedi#configure_call_signatures() call jedi#configure_call_signatures()
normal ostr exe 'normal ostr '
redir => msg redir => msg
Python jedi_vim.show_call_signatures() Python jedi_vim.show_call_signatures()
redir END redir END