fix tests for s:expand

This commit is contained in:
itchyny
2016-03-21 16:26:06 +09:00
parent db559ec96b
commit 738c37c7d3

View File

@@ -74,13 +74,13 @@ function! s:suite.custom_void_string()
let g:lightline = { 'component_expand': { 'custom': 'Custom' } }
call lightline#init()
call s:assert.equals(SID('expand')([['readonly', 'filename'], ['custom'], ['modified']]),
\ [[['readonly', 'filename'], [], ['modified']], [[0, 0], [], [0]], [0, 1, 2, 3]])
\ [[['readonly', 'filename'], ['modified']], [[0, 0], [0]], [0, 2, 3]])
call s:assert.equals(SID('expand')([['readonly', 'filename', 'custom', 'modified']]),
\ [[['readonly', 'filename', 'modified']], [[0, 0, 0]], [0, 1]])
delfunction Custom
endfunction
function! s:suite.custom_void_string()
function! s:suite.custom_type_void_string()
function! Custom()
return ''
endfunction