more compatible test for older vim version.
This commit is contained in:
parent
a13c692529
commit
7bcb9b5fff
@ -19,7 +19,6 @@ function! s:get_val(key, append)
|
|||||||
return a:key
|
return a:key
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
if a:append > 0
|
if a:append > 0
|
||||||
let val .= '%{airline#util#append('.func.')}'
|
let val .= '%{airline#util#append('.func.')}'
|
||||||
elseif a:append < 0
|
elseif a:append < 0
|
||||||
|
@ -26,8 +26,9 @@ describe 'util'
|
|||||||
end
|
end
|
||||||
|
|
||||||
it 'has getwinvar function'
|
it 'has getwinvar function'
|
||||||
Expect airline#util#getwinvar(1, '&statusline', 'foo') == getwinvar(1, '&statusline')
|
|
||||||
Expect airline#util#getwinvar(1, 'asdf', '123') == '123'
|
Expect airline#util#getwinvar(1, 'asdf', '123') == '123'
|
||||||
|
call setwinvar(1, 'vspec', 'is cool')
|
||||||
|
Expect airline#util#getwinvar(1, 'vspec', '') == 'is cool'
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'has exec funcrefs helper functions'
|
it 'has exec funcrefs helper functions'
|
||||||
|
Loading…
Reference in New Issue
Block a user